Why is jQuery slower in IE?

I have a complex ASP.NET page that heavily uses jquery to manipulate the DOM (without AJAX). The page is faster in Mozilla (Firefox) browsers compared to IE 7 or 8.

Are there some features optimized for FF?

+5
source share
4 answers

Power is in the javascript processing engine. Unlike server processing (PHP, ASP.net), javascript is the client side, which means that your browser browser must do the page rendering work. Competitors are trying to get people to switch to their browser, boasting faster processing of things like javascript.

This leads to all browsers having their own processing processors. This slows down some browsers. IE:

Internet Explorer does not use the Mozilla Engine, so it is significantly slower than Firefox. Internet Explorer is known as one of the slowest engines from all major browsers.

Firefox is slower than Chrome, which houses one of the highest Javascript Engines (a modified version of Webkit).

Safari , .

PCWorld

+8

, JavaScript Firefox, , , jQuery .

Web Browser               Average Runtime     Relative
-----------               ---------------     --------
Safari 4.0.2 (530.19.1)        169          1x (fastest)
Chrome 2.0.172.33              349          2.1x slower
Firefox 3.5                    377          2.2x slower
Opera 9.64 (10487)             442          2.6x slower
IE 8.0                         771          4.6x slower

: http://celtickane.com/labs/web-browser-javascript-benchmark/

+7

, FireFox, JavaScript FireFox , Safari Chrome. Microsoft , , IE8 - .

jQuery 2008 . , , , IE7. javascript IE.

+3

All Articles