Skip to content

Commit

Permalink
Changes conditional loader
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Feb 16, 2014
1 parent a53b6fd commit d36b528
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion template.html
Expand Up @@ -47,10 +47,15 @@
<h1>Bolt.</h1>

<script>
// Conditionally load polyfills
var open = unescape('%3Cscript src="{{STATIC_URL}}');
var close = unescape('"%3E%3C/script%3E');

// Function.prototype.bind is the ES5 feature with by far the worst support. Use it
// to roughly detect ES5. http://kangax.github.com/es5-compat-table/
!Function.prototype.bind && document.write(unescape('%3Cscript src="res/es5-shim/es5-shim.min.js"%3E%3C/script%3E'));
!Function.prototype.bind && document.write(open + 'bolt/res/es5-shim/es5-shim.min.js' + close);
</script>

<script src="res/ios-orientationchange-fix/ios-orientationchange-fix.js"></script>
<script src="js/jquery-2.0.0-custom.js"></script>
<!--[if lte IE 8]><script src="js/jquery-1.9.1.js"></script><![endif]-->
Expand Down

0 comments on commit d36b528

Please sign in to comment.