Skip to content

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