threesixty.js
threesixty.js copied to clipboard
Lazy loading
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.
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.