Skip to content

Instantly share code, notes, and snippets.

@freshyill
Last active December 17, 2015 03:39
Show Gist options
  • Save freshyill/5545100 to your computer and use it in GitHub Desktop.
Save freshyill/5545100 to your computer and use it in GitHub Desktop.
So it looks like people are confused about how to fallback from jQuery 2 to 1.9 for IE. Is there any reason why this wouldn't work?
<!--[if lte IE 8]>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.9.1.min.js"><\/script>')</script>
<![endif]-->
<!--[if gt IE 8]><!-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-2.0.0.min.js"><\/script>')</script>
<!--<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment