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

Update README.md #562

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open

Conversation

JayHoltslander
Copy link

Congrats. :-)

@boynet
Copy link

boynet commented Nov 22, 2018

Congrats 👍
a little question they said "it uses the highly performant Intersection Observer API (where available)" is it true? from what I see still no Intersection Observer in https://github.com/aFarkas/lazysizes/blob/gh-pages/lazysizes.js

@aFarkas
Copy link
Owner

aFarkas commented Nov 22, 2018

@boynet
You can use https://github.com/aFarkas/lazysizes/blob/gh-pages/src/lazysizes-intersection.js if you really want to use intersection observer (You will either need to add a polyfill or conditionally load one of both scripts for non supporting browsers). From my experience it won't give you a noticeable performance gain to the normal version because this one is highly optimized.

In a world where you don't need to polyfill it it would be a simple go to because the API is quite helpful to create a lazyloader.

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

Successfully merging this pull request may close these issues.

3 participants