Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Under What Circumstances Would Javascript Performance be Worse in IE8 than IE7?

I work for a company that built interactive seating charts using Javascript. Here's an example: http://seatgeek.com/event/show/457624/miami-dolphins-at-new-york-jets-2010-12-12/. In many ways they mimic the functionality of Google Maps.

We're dealing with an odd problem--performance for the maps is fine in all browsers except IE8. I'm including IE6 and IE7 in the "all browsers" category. We're seeing markedly worse JS performance in IE8. When you try to drag the map in IE8, it locks up a bit and there's a noticeable lag. But that's not a problem in IE6 or IE7.

We've isolated that the problem is related to the markers on the map. It's much more prevalent when you zoom in and there are more markers displayed.

We've done some benchmarking using dynaTrace and it seems the delay is not caused by JS processing, per se, but rather by what dynaTrace refers to as "rendering". Seems surprising that the newer version of IE would have worse rendering.

like image 893
Jack7890 Avatar asked Oct 28 '10 02:10

Jack7890


1 Answers

Have you run the script Profiler in the IE8 Developer Tools? It will tell you exactly how much time is spent on each function.

See: Link

like image 195
Will Peavy Avatar answered Oct 06 '22 00:10

Will Peavy