i have certain pages where ie (even 7 or 8) seems to take a long time to render. What is the best way, tool to find out what is the bottleneck in ie (as firefox and chrome seem quick)
feedback
|
migrated from stackoverflow.com Dec 29 '09 at 23:51
This question came from our site for professional and enthusiast programmers.
|
| |||
|
feedback
|
|
Unfortunately since IE has a notoriously slow javascript engine (yes, even 7 and 8 :/) you're probably going to find that the only way to noticeably improve performance is to heavily limit DOM manipulation. That, in my experience and according to most of the benchmarks out there, is the slowest part. Are you doing a lot of element selecting and modifying in a load handler (as in, as soon as the DOM has loaded)? Also, are you using a library? Not all are created equal :) Give jQuery a try if you aren't using it already. | |||||
feedback
|
|
There may be several reasons for IE to not to perform well. Generally, heavy websites having rich multimedia content tend to slow down the browser. To improve performance in this case, you can try to resize the cache to say 128MB or something. (Start Internet Explorer, Select Tools -> Internet Options -> General. Under Temporary Internet Files click the Settings button and type the amount of disk space to use.) But, I would recommend you to use Mozilla Firefox or Google Chrome as alternatives to IE. | |||
|
feedback
|
|
Yahoo! provide a service called YSlow that does analysis of page speed. | |||
|
feedback
|
|
You could identify where is the bottleneck in IE by using an HTTP proxy such as Fiddler: this would help you to find if a long time is spent in downloading files, in rendering stylesheets or running Javascript, by looking at the intervals between downloads. In my experience, if Javascript is the bottleneck, you can optimize your code in Firefox, using the profiler part of Firebug to identify long-running code. Most optimizations will not be specific to Firefox and will benefit other browsers, including Internet Explorer as well. | |||
|
feedback
|