Closed DanielRuf closed 2 years ago
The onload triggers when the image starts rendering so when you use big baseline-encoded images the shimmer / custom loaders goes away when it starts rendering line for line.
onload
https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete
So it will look like this:
How to reproduce:
See how imagesloaded for jQuery implemented this: https://github.com/desandro/imagesloaded/blob/master/imagesloaded.js#L284 (but this may have the same issue with baseline-encoded images)
The
onload
triggers when the image starts rendering so when you use big baseline-encoded images the shimmer / custom loaders goes away when it starts rendering line for line.https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete
So it will look like this:
How to reproduce: