I'm using a lazyloader to replace <img> placeholder with the real image via Javascript.
Using a placeholder image on responsive sites (overriding width and height attributes via CSS) results in content jumps, when the real image with a different proportion has been loaded. So my plan was to insert simple inline SVG code with the dimensions of the final image.
- Is this a good idea anyway?
- How do I cope with
<img>vs<svg>tag? (Needed as preloader placeholder)
[edit for clearer instruction – thanks @Robert Longson]
appelsiini.net lazyload