3 ms·
I didn't compare with simply batching updates, but I've had big wins from using document fragments. In order to allow both batch and incremental updates with Ba
by michaelmior 13y ago
I didn't compare with simply batching updates, but I've had big wins from using document fragments. In order to allow both batch and incremental updates with Backbone, I simply create document fragments before a batch update. Then I check when adding elements if a fragment exists, or if elements should be added to the DOM directly.