Skip to content

24 ways to impress your friends

Vote up?

Scott Kosman

Bam! Here it is!

http://www.learningjquery.com./2009/03/43439-reasons-to-use-append-correctly

It’s a couple of years old but the idea is still solid. Pushing values into an array on each iteration and then using $(“whatever”).append(myreallylongarray.join(’‘)); to do your heavy lifting shows HUGE performance boosts. In retrospect this is the “right way” example I should have used for the DOM Manipulation section of my article, but hindsight is 20/20, etc.