HTML and CSS Reference
In-Depth Information
To m a ke t h e co d e e ve n b e t t e r, yo u' v e a l s To p u t t h e <script> element inside an
IE conditional comment, so that only IE8 and earlier versions will download the
script (I'll talk a bit more about conditional comments later in the chapter). IE9
and 10 have much better HTML5 support; other browsers are unlikely to need it.
So for all those browsers, you can skip downloading the script and avoid an unnec-
essary HTTP request.
NOTE: Remy's HTML5 shiv now also includes Jonathan Neal's IE Print
Protector—a script that fixes IE's problems with printing HTML5 content.
Search WWH ::

Custom Search