posts | commentsAdd to Google

Archive for May, 2008

14May

Javascript loop performance

No comments

I’ve recently been working on a large javascript based application that does a lot of DOM manipulation. There are literally thousands of loops throughout the application that traverse the DOM and make changes in some way shape or form. The application has been running slow of late and we’ve been working through small ways to optimize performance. One of the things that I noticed is that literally all of our loops were written the following way:

Click to continue reading “Javascript loop performance”