Last active
December 12, 2015 12:08
-
-
Save 1Marc/4770007 to your computer and use it in GitHub Desktop.
Pseudocode demonstrating inefficient rendering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pseudocode demonstrating inefficient rendering | |
var $list = $('#list'); | |
var dataset = data; // array of 1000 objects | |
for (var i = 0; i < dataset.length; i++) { | |
var view = new ItemView({model: dataset[i]}); | |
$list.append(view.render().el); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment