Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On long campsite list dynamically load more campsites as we scroll #110

Open
mlandauer opened this issue Apr 22, 2017 · 1 comment
Open
Labels

Comments

@mlandauer
Copy link
Owner

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.

@mlandauer
Copy link
Owner Author

Here's an example of how you could implement it in pure elm http://stackoverflow.com/questions/40690998/how-to-implement-infinite-scroll-in-elm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant