monstra-cms / monstra

THIS PROJECT IS NOT SUPPORTED ANYMORE! Check FLEXTYPE.ORG
http://flextype.org
MIT License
396 stars 123 forks source link

replace jquery-2.x with latest jquery-1.x to support ie8 #420

Open gsw945 opened 7 years ago

gsw945 commented 7 years ago

I found Monstra cant't display well on IE8. I read the ie web browser's console information, found Monstra used jquery-2.1.0 (at 'public/assets/js/jquery.min.js'), I got the support infomation at jquery.com:

You asked for it, you got it: jQuery 2.0 has arrived! As promised, this version leaves behind the older Internet Explorer 6, 7, and 8 browsers. In return it is smaller, faster, and can be used in JavaScript environments where the code needed for old-IE compatibility often causes problems of its own. But don’t worry, the jQuery team still supports the 1.x branch which does run on IE 6/7/8. You can (and should) continue to use jQuery 1.9 (and the upcoming 1.10) on web sites that need to accommodate older browsers.

Then, I download the leatest jquery-1.x(jquery-12.4) to replace the default jquery.min.js. And then, it behaving well after I refreshed the ie 8 web browser.

But I'm not sure whether other places must use jquery-2.x, I want to know whether it feasible to do it this way.