Optimization for Internet Explorer

As a web developer, I noticed that everything I create works fine in all browsers, but always always has performance problems in Internet Explorer. Please note that I mean speed , since I always take care that it is displayed and works in all browsers.

Is there somewhere or who has good programming tips for Internet Explorer? I mean how to do things, so this is more or less optimized for Internet Explorer.

I mean, my last example is that I return JSON data from a database (via AJAX) and then create a page with the results. The response from the server is minimal, and it loads instantaneoulsy in the aaaaall browser, but takes 5-10 seconds in Internet Explorer, depending on the OS and, therefore, version.

I get lost in words, and I'm just wondering if there is anything that I can do.

Examples: http://msdn.microsoft.com/en-us/library/ms533019(VS.85).aspx http://www.quirksmode.org/dom/innerhtml.html http://blog.dynatrace.com / 2009/12/12 / understanding-internet-explorer-rendering-behavior / /

-theo

+3
source share
5

: DOM-, document.createElement( "div" ) IE . HTML .

DOM-, , . , , , document.body.appendChild( "div" ) ( "div" - ). , .

+7
+3

Javascript IE . IE . , js/ajax- (jQuery, YUI ..) , .

js - , : jspatterns.com, IE + JavaScript. Douglas Crockford Javascript: The Good Parts js zen.

+1

DOM ( , ). , DOM, , .

, .

+1

IE 6 , . jquery (1.2.6 ) , . html , innerHtml . jQuery 1.4+ IE6 , .

for , .. "+ =" . for . - .

I ran into 2 problems with IE6 regarding performance: - Switching CSS classes is very slow in IE6, it’s better to set, for example, the background color in the style attribute for the element. - If you make mice on tags or td tags in a table, this will work well in all other browsers except IE. You must handle the mouseover and mouseout events at the table level and find the tr or td tag that was the source of the event and perform any behavior at this point.

0
source

Source: https://habr.com/ru/post/1734555/


All Articles