Open tobimori opened 2 years ago
@tobimori: The native loading="lazy"
in Your <noscript>
example would have no effect as stated on MDN:
Note: Loading is only deferred when JavaScript is enabled. This is an anti-tracking measure, because if a user agent supported lazy loading when scripting is disabled, it would still be possible for a site to track a user's approximate scroll position throughout a session, by strategically placing images in a page's markup such that a server can track how many images are requested and when.
Untested, but just came into my mind that you could do something like this to get rid of blurry placeholders if JS is disabled (roughly 1-2% of all browsers, so basically as irrelevant as IE)
Probably needs absolute positioning on the parent or some kind of styling to remove the placeholder when the page is loaded without JS, as otherwise both images are shown, so something like this in the head should work:
With regard to this plugin, it should be at least mentioned in the README and optionally added to the
bluryrimage
KirbyTag and/or theimage
block snippet.