Created
February 20, 2012 20:15
-
-
Save brunoais/1871142 to your computer and use it in GitHub Desktop.
my solution to deal with IE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if !IE]--><script defer type="text/javascript" src="{T_JQUERY_LINK}" onerror="location.href = (location.href.indexOf('?') !== -1) ? location.href.replace(/\?/, '?altjQuery&') : (location.href.indexOf('#') === -1 ? location.href + '?altjQuery': location.href.replace(/#/, '?altjQuery#'));" ></script><!--[endif]--> | |
<!--[if IE]><script type="text/javascript" src="{T_JQUERY_LINK}" onerror="location.href = (location.href.indexOf('?') !== -1) ? location.href.replace(/\?/, '?altjQuery&') : (location.href.indexOf('#') === -1 ? location.href + '?altjQuery': location.href.replace(/#/, '?altjQuery#'));" ></script> | |
<!--[if lt IE 9]><script defer type="text/javascript" src="{T_TEMPLATE_PATH}/isjQueryHere.js"></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