mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Fix IE9 script loading
Script tags weren’t loading sequentially.
IE9 doesn’t support the defer attribute:
https://github.com/h5bp/lazyweb-requests/issues/42
Conditional comments:
http://msdn.microsoft.com/en-us/library/ms537512%28v=vs.85%29.aspx
Breaking change:
b698745e05
fa2729ff5ab473ce
This commit is contained in:
parent
54f8adb1cc
commit
36921f7644
1 changed files with 10 additions and 1 deletions
|
@ -28,11 +28,20 @@
|
|||
<link rel="shortcut icon" href="/images/favicon.ico">
|
||||
<link rel="stylesheet" href="/stylesheets/app.css">
|
||||
|
||||
<!-- IE9 doesn't support defer attribute: https://github.com/h5bp/lazyweb-requests/issues/42 -->
|
||||
<!--[if IE 9]>
|
||||
<script src="/lib/ace/ace.js"></script>
|
||||
<script src="/javascripts/box2d.js"></script>
|
||||
<script src="/javascripts/vendor.js"></script>
|
||||
<script src="/javascripts/aether.js"></script>
|
||||
<script src="/javascripts/app.js"></script>
|
||||
<![endif]-->
|
||||
<![if (gt IE 9)|(!IE)]>
|
||||
<script src="/lib/ace/ace.js" defer></script>
|
||||
<!--[if IE 9]><script src="/javascripts/box2d.js"></script><![endif]-->
|
||||
<script src="/javascripts/vendor.js" defer></script>
|
||||
<script src="/javascripts/aether.js" defer></script>
|
||||
<script src="/javascripts/app.js" defer></script> <!-- it's all Backbone! -->
|
||||
<![endif]>
|
||||
<script>
|
||||
|
||||
// Placeholder for iPad, which inspects the user object at the bottom of an injected page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue