Showing posts with label performance. Show all posts
Showing posts with label performance. Show all posts

Tuesday, April 9, 2013

Static HTML vs JavaScript dynamic generation - which is faster?

Say you have a page containing a huge amount of data - a list of 1000 customers or products. Such a list may take a long time to render. I always wondered if it's actually faster to render the page using a clever JavaScript loop instead of one big chunk of static HTML. So I did a small benchmark to determine which method renders faster.