Minimize DOM nodes for long-form content such as lists. More DOM nodes means more time consumption for rendering and updating content.
Use CDK or other virtual scrolling libraries for the same.
Even though the JS processing is more in virtual scrolling, its way less cheaper compared to DOM manipulation. TLDR? Itβs valuable to spend time in structuring your HTML as well.
π Interested in Frontend or Indie-hacking?
I talk about the latest in frontend, along with my experience in building various (Indie) side-projects