News for hackers. Stuff that matters.
Re:Rendering Backbone Collections with DocumentFragment by nathanstitt on Monday April 15, 2013 @11:14AM (#5551906)
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.

Re:Rendering Backbone Collections with DocumentFragment by jabbernotty on Monday April 15, 2013 @01:42PM (#5552867)
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?

Re:Rendering Backbone Collections with DocumentFragment by nathanstitt on Monday April 15, 2013 @02:23PM (#5553193)
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.
Re:Rendering Backbone Collections with DocumentFragment by jabbernotty on Monday April 15, 2013 @02:49PM (#5553384)
It works without problems in Chromium, on that same system.