In DOM, only 20 li elements are added, and based on user's scroll these 20 elements are updated with data,
- Intersection observer used to detect bottom and top of the page instead of scroll event
- DOM is not heavy, only limited elements
In DOM, only 20 li elements are added, and based on user's scroll these 20 elements are updated with data,