Skip to content

Instantly share code, notes, and snippets.

@hsleonis
Created March 31, 2016 04:08
Show Gist options
  • Select an option

  • Save hsleonis/e778dc0a8093e66186d2fe4294bd465d to your computer and use it in GitHub Desktop.

Select an option

Save hsleonis/e778dc0a8093e66186d2fe4294bd465d to your computer and use it in GitHub Desktop.
JQuery best practice for IE
<!--
f your web site needs oldIE support, and we expect most sites will need it for at least another year or two,
you can use IE conditional comments to include version 1.9 only when visitors are using oldIE:
Reference: https://blog.jquery.com/2012/06/28/jquery-core-version-1-9-and-beyond
-->
<!--[if (!IE)|(gt IE 8)]><!-->
<script src="js/jquery-2.1.3.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8]>
<script src="js/jquery-1.9.1.min.js"></script>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment