How would I go about running a script in every browser except for Internet Explorer?
I'm using queryloader2 on my site, and (for whatever reason) it takes around a minute to load in IE9, I'm assuming the same or worse in older versions of IE. In any other browser, it's just a few seconds. Due to this, I'd like to just not have the script run at all in any version of IE (it doesn't truly hurt the functionality of the site).
You need to use conditional comments for that:
<!--[if !IE]>
<script src="myScript.js" type="text/javascript"></script>
<![endif]-->
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With