This allow us to start with a much smaller DOM which will render much more quickly. In a quick test with lighthouse by just showing the first 10 campsites on the list we went from a "First meaningful paint" of 7085.3ms to 872.2ms.
So, let's only add to the campsite list in the DOM when we actually scroll down.
This allow us to start with a much smaller DOM which will render much more quickly. In a quick test with lighthouse by just showing the first 10 campsites on the list we went from a "First meaningful paint" of 7085.3ms to 872.2ms.
So, let's only add to the campsite list in the DOM when we actually scroll down.