Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update html5shim/shiv to 3.6.1, use a CDN #6514

Closed
wants to merge 1 commit into from

3 participants

@semenko

This commit:

  • Switches html5shiv to a CloudFlare cdnjs (from Google Code, which sets a sad Cache-Control max-age of 3 minutes)
  • Makes html5shiv protocol-relative (not sure where Issue #1706 went)
  • Updates html5shiv from vpre3.6 to 3.6.1 which fixes a few minor bugs

New html5shiv home: https://github.com/aFarkas/html5shiv

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>

@semenko semenko Update html5shim/shiv to 3.6.1, use a CDN
This commit:
 - Switches html5shiv to a CloudFlare cdnjs (from Google Code)
   [Google Code sets a Cache-Control max-age of 3 minutes :( ]
 - Makes html5shiv protocol-relative (not sure where Issue #1706 went)
 - Updates html5shiv from vpre3.6 to 3.6.1 which fixes a few minor bugs

New html5shiv home: https://github.com/aFarkas/html5shiv

Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
2b802d6
@mdo
Owner

What are the implications of this new URL and super short cache vs. Google Code? I've never heard of CloudFlare until today.

The protocol was restored because we were running into issues with IE hanging completely with it. I know IE7-8 will load CSS twice if used with protocol-less links, but I don't recall if we had the same problem with the shiv.

@semenko
  • Looks like the double-loading issue is only for stylesheets (per http://www.stevesouders.com/blog/2010/02/10/5a-missing-schema-double-download/ and running his example through http://www.webpagetest.org/)

  • I think the biggest implication is since the Google Code URL isn't a CDN (and probably isn't meant to be used like this) their cache TTL is 180 seconds, so IE 7 & 8 clients frequently have the shiv expire. It also doesn't support gzip. The CloudFlare CDN has a TTL of about a year and supports gzip, which should reduce load times.

I think it'd be useful to have (1) an updated shiv, (2) with a long TTL & gzip, (3) on a reliable CDN. This meets the first two, though not 100% convinced about the third.

@iki
@mdo
Owner

Opted to include it locally after reading @iki's comment. Updated and ready to go in #6346. Thanks folks!

@mdo mdo closed this
@semenko semenko deleted the unknown repository branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 9, 2013
  1. @semenko

    Update html5shim/shiv to 3.6.1, use a CDN

    semenko authored
    This commit:
     - Switches html5shiv to a CloudFlare cdnjs (from Google Code)
       [Google Code sets a Cache-Control max-age of 3 minutes :( ]
     - Makes html5shiv protocol-relative (not sure where Issue #1706 went)
     - Updates html5shiv from vpre3.6 to 3.6.1 which fixes a few minor bugs
    
    New html5shiv home: https://github.com/aFarkas/html5shiv
    
    Signed-off-by: Nick Semenkovich <semenko@alum.mit.edu>
This page is out of date. Refresh to see the latest.
View
2  docs/base-css.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/build/node_modules/hogan.js/web/index.html.mustache
@@ -12,7 +12,7 @@
<meta name="description" content="">
<meta name="author" content="">
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Mobile Specific Metas
View
2  docs/components.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/customize.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/examples/carousel.html
@@ -254,7 +254,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/fluid.html
@@ -22,7 +22,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/hero.html
@@ -19,7 +19,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/justified-nav.html
@@ -84,7 +84,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/marketing-narrow.html
@@ -50,7 +50,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/signin.html
@@ -46,7 +46,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/starter-template.html
@@ -18,7 +18,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/examples/sticky-footer.html
@@ -67,7 +67,7 @@
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
View
2  docs/extend.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/getting-started.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/index.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/javascript.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/scaffolding.html
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  docs/templates/layout.mustache
@@ -15,7 +15,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/buttons.html
@@ -19,7 +19,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/css-tests.html
@@ -18,7 +18,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/forms-responsive.html
@@ -19,7 +19,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/forms.html
@@ -19,7 +19,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/navbar-fixed-top.html
@@ -19,7 +19,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/navbar-static-top.html
@@ -21,7 +21,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
View
2  less/tests/navbar.html
@@ -22,7 +22,7 @@
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
- <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
Something went wrong with that request. Please try again.