There are a number of uses cases where we need to create DOM nodes and append them to a list of nodes.

Think about WhatApp Web, scroll up, older messages are populated on the chat window.

Or may be Instagram, scroll down, new posts keep adding up in an infinite scroll setting. There are a lot of performance aspects associated with such infinite scroll systems - DOM recycling, virtualisation, lazy load etc.

We would however keep this discussion limited to appending DOM nodes. You can ignore the other advanced aspects of infinite scroll systems.

#performance #dom #node

Append a List of DOM Nodes
1.20 GEEK