4 ms·
I doubt it's the data itself that your browser is struggling with. It's more likely the parsing of the comment content, generation of 20,000 templates, keeping
by hughes 11y ago
I doubt it's the data itself that your browser is struggling with. It's more likely the parsing of the comment content, generation of 20,000 templates, keeping track of probably a quarter million DOM nodes, listening to a hundred thousand events, and making sure all of that is layed out and aligned sensibly in real-time that your computer struggles with.
- mod 11y agoHere's hoping it's only one event as opposed to a hundred thousand, at the very least. In jQuery, for instance, you'd do something like $(parentOfComments).on('eventName', '.commentClass', function() { //dostuff }); The event propagates up to the body or whatever parent element you use.