IE8 does not support jQuery. ie8 does not support jquery.

Source: Internet
Author: User
Tags jquery cdn

IE8 does not support jQuery. ie8 does not support jquery.

Recently, I encountered a very strange problem when I was working on a WordPress topic. The webpage was displayed normally in Chrome and other browsers, but I couldn't work in IE8. The system prompts "loading is complete, but there is an error in the webpage ".

Try to fix IE, but it is ineffective. Later, after repeated troubleshooting, it was found that IE8 could not run jQuery. I have not found any related articles for a long time on the Internet. Some jQuery plug-ins have been used before and can be used normally in IE. Use IE to open the Demo of a previously written jQuery plug-in. It runs normally and is wondering if it is the reason for CDN. So I changed the jQuery file referenced by CDN to a local jQuery file, still ineffective...

I guess there may be a problem with the CDN support of IE8. I used "ie8 jquery cdn" as the keyword to search and found the answer unexpectedly. It turned out that I referenced jQuery of Version 2.1 in CDN, jQuery of Version 2.0 and later does not support IE 8 or earlier versions, so this problem occurs.

JQuery 2.0 removes support for IE6, IE7, and IE8.
Http://www.weste.net/2012/7-24/84174.html

The solution is simple. insert such code in the webpage header so that IE8 and earlier browsers can reference jQuery 1.9 CDN.

 
 
  1. <! -- IE8 can only support jQuery1.9 -->
  2. <!--[if lte IE 8]>
  3. <script src="http://cdn.bootcss.com/jquery/1.9.0/jquery.min.js"></script>
  4. <![endif]-->
This article by jzj1993 original, reproduced please note Source: http://www.hainter.com/ie8-jquery

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.