With this snippet, modern browsers use `async`, older browsers (i.e.
IE8 & IE9) use `defer`.
IE8 and IE9 lack `async` support but they have a broken implementation
of `defer`. However, the brokenness doesn’t apply in this scenario
since no scripts depend on GA in the way jQuery UI depends on jQuery.
`async` is also not supported by the Android 2.3 browser, but that
browser does have a preload scanner to make up for it.
Once we drop support for IE8 and IE9, the `defer` attribute can be
omitted.
The only downside is that the snippet is not a pure JavaScript
solution anymore, meaning it cannot be moved or concatenated into a
`.js` file. On the other hand, no one seemed to be doing that anyway;
everyone just inlines the snippet into the HTML.
Ref. https://github.com/h5bp/html5-boilerplate/pull/1660#issuecomment-89285678Closes#1696.
In countries where `googleapis.com` is blocked (e.g.: China),
HTML5 Boilerplate is broken out of the box as jQuery will not load
until the request times out.
This commit changes the default jQuery source to use the jQuery CDN
as it is as fast or faster (by some reckoning) than the Google Hosted
Libraries version and is available worldwide.
While the chance of hitting the cache lottery is smaller with the
jQuery CDN (it's not as ubiquitous as Google), that chance is not enough
to override the need to ship working code for everyone in the world.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Fixh5bp/html5-boilerplate#1737Closeh5bp/html5-boilerplate#1739
* Fix broken links and use `https://` where possible.
* Remove the `Servers and Stacks` section (introduced by
h5bp/html5-boilerplate#1572) from the `misc.md` file, as now, since
h5bp/html5-boilerplate#1694 was merged, it brings even less value.
Add `dppx` variant of `min-resolution` to the high resolution media
query as `dppx` is more accurate¹ than `dpi`.
Notes:
* since `dppx` is not supported by all browsers the media query
still needs the `dpi` fallback
* this change removes the `dppx` related warning² from Blink based
browsers (e.g.: Chrome, Opera)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
¹ `dpi` (dots per inch) refers to a defined size of pixels where one
inch is `96px` no matter what, so it does not take into consideration
the physical inches.
² "Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch,
not dots-per-physical-inch, so does not correspond to the actual 'dpi'
of a screen. In media query expression: print,
(-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi)"
Fixh5bp/html5-boilerplate#1474Closeh5bp/html5-boilerplate#1691
Change made in order to be more consistent with the overall use of
lowercase in `index.html`.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
From https://msdn.microsoft.com/en-us/library/jj676915.aspx:
"The X-UA-Compatible header isn't case sensitive; however, it must
appear in the header of the webpage (the HEAD section) before all
other elements except for the title element and other meta elements."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ref h5bp/html5-boilerplate#1656Closeh5bp/html5-boilerplate#1656Closeh5bp/html5-boilerplate#1668
Updated `usage.md` to include 4 new files included with the project:
* `.editorconfig`
* `tile-wide.png`, `tile.png` and `browserconfig.xml`
Ref 80530d6b46a99d8563ddClose#1647
While the short links look "nicer" and can be useful (e.g.: stats),
when our site (http://h5bp.com) goes down, it prevents users from
accessing the information they point to.
Closeh5bp/html5-boilerplate#1619