-yall.js doesn't care about placeholders, and won't try to minimize layout shifting for you. Use appropriate `width` and `height` attributes on elements, as well as lightweight placeholders. In the case of `<video>`, avoid setting a `poster` attribute for autoplaying videos. On the other hand _do_ consider lazy loading a placeholder image with `data-poster` for non-autoplaying videos. Please check out the `test` folder to see how you might use placeholders in conjunction with yall.js. If you don't want to bother with placeholders, you can omit the `src` attribute entirely in your lazy loading markup, and yall.js will still work, albeit the experience may be super jumpy for your users.
0 commit comments