Feature: Lazy loading of poster images #1879
Replies: 5 comments
-
In general I agree and I think we will support this via the That said, I'm interested to know: do you think you could address this case with something like |
Beta Was this translation helpful? Give feedback.
-
Are you suggesting that it would be done through slots for poster? |
Beta Was this translation helpful? Give feedback.
-
@pushmatrix yah, something along the lines of: <model-viewer>
<img srcset="..." loading="lazy" slot="poster">
</model-viewer> Obligatory caveat: |
Beta Was this translation helpful? Give feedback.
-
If we did that slot thing, would it break any of the css stuff that @elalish did for seamless poster transitions? |
Beta Was this translation helpful? Give feedback.
-
@pushmatrix No, if you use the same poster image and set |
Beta Was this translation helpful? Give feedback.
-
already have lazy loading of 3D models in (which is awesome). It'd be nice to piggyback on that functionality and make the poster lazyload as well. Especially since posters don't have srcset support for multiple resolutions, it can take a lot of bandwidth if posters are big.
Beta Was this translation helpful? Give feedback.
All reactions