diff --git a/dist/doc/html.md b/dist/doc/html.md index 42a065f8a6..ff1a74f3d8 100644 --- a/dist/doc/html.md +++ b/dist/doc/html.md @@ -145,8 +145,8 @@ using some polyfill CDN service, like [cdn.polyfill.io](https://cdn.polyfill.io/ just put it before the other scripts in the bottom of the page: ```html - - + + diff --git a/dist/index.html b/dist/index.html index f79f6fc3f5..fda8f90032 100644 --- a/dist/index.html +++ b/dist/index.html @@ -22,7 +22,7 @@
Hello world! This is HTML5 Boilerplate.
- + diff --git a/src/doc/extend.md b/src/doc/extend.md index f389a2ecd5..08be9abf39 100644 --- a/src/doc/extend.md +++ b/src/doc/extend.md @@ -87,7 +87,7 @@ your site, for example) then you can queue up a domain name to be prefetched. ```html - + ``` You can use as many of these as you need, but it's best if they are all @@ -107,7 +107,7 @@ Amazon S3: Google APIs: ```html - + ``` Microsoft Ajax Content Delivery Network: diff --git a/src/doc/faq.md b/src/doc/faq.md index 370a42b989..5611d69135 100644 --- a/src/doc/faq.md +++ b/src/doc/faq.md @@ -3,8 +3,6 @@ table of contents](TOC.md) # Frequently asked questions -* [Why is the URL for jQuery without - `http`?](#why-is-the-url-for-jquery-without-http) * [Why don't you automatically load the latest version of jQuery from the Google CDN?](#why-dont-you-automatically-load-the-latest-version-of-jquery-from-the-google-cdn) * [Why is the Google Analytics code at the bottom? Google recommends it be @@ -18,35 +16,6 @@ table of contents](TOC.md) -- -### Why is the URL for jQuery without `http`? - -It is because of the use of [protocol-relative -URLs](http://paulirish.com/2010/the-protocol-relative-url/). - -**N.B.** If you try to view the local web page directly in the browser, the -browser will fail to load the assets specified using protocol-relative URLs -as it will attempt to fetch them from the local file system. We recommend you -use a local HTTP server to test your web pages, or a file hosting service that -allows you to preview your web pages online (e.g. -[Dropbox](https://www.dropbox.com/)). - -Setting up a local HTTP server can be done using there various -[one-liners](https://gist.github.com/willurd/5720255): - -* PHP 5.4.0+ by running - [`php -S localhost:8080`](https://php.net/manual/en/features.commandline.webserver.php) - from your local directory -* Python 2.x by running `python -m SimpleHTTPServer` from your local directory -* Python 3.x by running `python -m http.server` from your local directory -* Ruby 1.9.2+ by running `ruby -run -ehttpd . -p8080` from your local directory -* Node.js by installing and running either - [`static -p 8080`](https://www.npmjs.org/package/node-static) - or [`http-server -p 8080`](https://www.npmjs.org/package/http-server) - -A list of more complex HTTP servers can be found -[here](misc.md#servers-and-stacks). - - ### Why don't you automatically load the latest version of jQuery from the Google CDN? The [file](https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js) to which diff --git a/src/doc/html.md b/src/doc/html.md index 42a065f8a6..ff1a74f3d8 100644 --- a/src/doc/html.md +++ b/src/doc/html.md @@ -145,8 +145,8 @@ using some polyfill CDN service, like [cdn.polyfill.io](https://cdn.polyfill.io/ just put it before the other scripts in the bottom of the page: ```html - - + + diff --git a/src/index.html b/src/index.html index c5c73ac3f8..8a1959ffef 100644 --- a/src/index.html +++ b/src/index.html @@ -22,7 +22,7 @@Hello world! This is HTML5 Boilerplate.
- +