Open shakee93 opened 4 years ago
@shakee93 - Thanks, this is a much needed feature in A3 Lazy load.
Note: Base64 encoding is not needed with SVG placeholders.
Amazing idea, just realized that we have a huge CLS issue because of the default placeholder.gif doesn't respect the aspect ratio of the images. Tried it and it worked like a charm!
adds support to dynamic svg/base64 datauri placeholder instead of the image placeholder. only if there is width and height attribute present in the img tag. this helps eliminate the reflow the jitter we get while lazy loading (cls : https://web.dev/cls/).
this pull doesn't break the default behaviour. it uses the default
_placeholder_url
only works whenabove filter is set to true.