Skip to content

Instantly share code, notes, and snippets.

@callumacrae
Forked from brunoais/gist:1871142
Created February 20, 2012 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callumacrae/1871367 to your computer and use it in GitHub Desktop.
Save callumacrae/1871367 to your computer and use it in GitHub Desktop.
not my solution to deal with IE
<!--[if !IE]>
<script defer type="text/javascript" src="{T_JQUERY_LINK}"></script>
<!-- IF S_JQUERY_FALLBACK --><script defer type="text/javascript">window.jQuery || document.write(unescape('%3Cscript src="{T_ASSETS_PATH}/javascript/jquery.js" type="text/javascript"%3E%3C/script%3E'));</script><!-- ENDIF -->
<![endif]-->
<!--[if IE]>
<script type="text/javascript" src="{T_JQUERY_LINK}"></script>
<!-- IF S_JQUERY_FALLBACK --><script type="text/javascript">window.jQuery || document.write(unescape('%3Cscript src="{T_ASSETS_PATH}/javascript/jquery.js" type="text/javascript"%3E%3C/script%3E'));</script><!-- ENDIF -->
<![endif]-->
<script defer type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js"></script>
<script defer type="text/javascript" src="{T_TEMPLATE_PATH}/ajax.js"></script>
<!-- the rest of javascript files with the defer. As long as it is same origin all is ok -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment