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

Add support for only rendering content that is visible #20

Open
brikis98 opened this issue Jul 10, 2015 · 0 comments
Open

Add support for only rendering content that is visible #20

brikis98 opened this issue Jul 10, 2015 · 0 comments

Comments

@brikis98
Copy link
Owner

When a pagelet arrives in the browser, check the location of its placeholder div. If that div is not currently visible (e.g. it's below the fold), don't waste CPU cycles rendering the content. Instead, attach a scroll event handler and only render the content if/when the user scrolls to it. This can dramatically reduce load time for tall pages with lots of content/images below the fold.

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

No branches or pull requests

1 participant