Created
March 31, 2016 04:08
-
-
Save hsleonis/e778dc0a8093e66186d2fe4294bd465d to your computer and use it in GitHub Desktop.
JQuery best practice for 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
| <!-- | |
| 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