[svgwg] Enable lazy loading for URLs on use href (#927)

lfre has just created a new issue for https://github.com/w3c/svgwg:

== Enable lazy loading for URLs on use href  ==
https://svgwg.org/svg2-draft/struct.html#UseElement

The `loading` attribute enables lazy loading for images and iframes. Likewise, the `<use>` tag could use this functionality to enable deferring the loading of SVGs as a URL. E.g:

```HTML
<svg>
 <use href="/path/to/my.svg" loading="lazy" />
</svg>
```

### What solutions exist today?

Like polyfills for lazy-loading, an Intersection Observer mechanism can swap a `data-href` attribute to `href` when approaching in view.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/927 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 7 December 2023 18:20:21 UTC