Performance Tuning: How to speed up JavaScript for IE by one line. (2008-01-15)

This code's make JavaScript speeding up to 5 times more normal speed for IE (Internet Explorer).


/*@cc_on _d=document;eval('var document=_d')@*/

When IE accesses the document object, the window object's internal method runs.
This running is very slow.

Ref. How to speed up JavaScript for IE by one line. - IT Senki (in Japanese)

tags: cj1

Posted by NI-Lab. (@nilab)