Hacker News new | ask | show | jobs
by nathanstitt 4813 days ago
If document reflow is an issue (which it certainly is for a large collection like the example), why not just render all the subview's el all at once: http://jsfiddle.net/HbzbS/

I'd be interested in how this method bencharks relative to the example, I suspect it should perform better though.

1 comments

I would like to point out that after visiting that link and allowing jsfiddle.net's scripts, my browser locked. Eventually I had to do a hard reset. This is on FF 20, Ubuntu 12.04.2 LTS.

Edit: This is reproducable, but this time I killed firefox pretty soon. How can javascript hang a browser?

Weird, I just tested it successfully under both FF 20 & Chrome 26.0.1410.43 (on os x). I've also used that technique in production code (but not with a list that large) and haven't had any problems with it thus far.
It works without problems in Chromium, on that same system.