When looping over a large collection and appending it to the DOM, the DOM only refreshes after all items have been appended. Why doesn\'t the DOM update after each app
app
If that's really what you want to do...
var i = 0; for (i=0; i<5000; i++) { setTimeout(function() { $('#collection').append('Line Item'); }, 0); }