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

Lazy loading #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Lazy loading #46

wants to merge 2 commits into from

Conversation

Carnoisseur1979
Copy link

This implements lazy loading, to avoid initialization and loading any images until the container intersects with the viewport, using the Intersection Observer API. If play() is called before initialization, this is also deferred until after the container is visible and has been initialized.

@Carnoisseur1979
Copy link
Author

If you're interested, this is implemented here: https://www.carnoisseur.com/products/details/disklok-steering-wheel-lock

Scroll down and the 360 viewer in the product description loads when visible.

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.

1 participant