is-land for image loading

Experimental: pass in a CSS selector to progressively enhance other elements (fallback)

This example uses on:interaction. You will need to interact with the island for the images to load. Note the aspect ratio before/after is preserved via the width/height attributes on the img.

Uses <noscript> for No-JS friendly images.

Uses <template> for JS-only images.