Releases: datocms/datocms-svelte
Releases · datocms/datocms-svelte
v3.0.4
- Add querySubscription 70b5757
v3.0.3
- Fix blockquote rendering 1d3984d
v3.0.2
v3.0.1
- NakedImage class/style is now imgClass/imgStyle. Introduce pictureClass/pictureStyle d58e262
v3.0.0
- Old
pictureClass/pictureStyle
props now control the<picture>
tag instead of the<img>
tag. For the<img>
tag, you can use the new propsimgClass/imgStyle
. 71cfa54
v2.0.4
- Fix regression 089a30f
v2.0.3
- Avoid complainings from Pagespeed 5e7ee04
v2.0.2
v2.0.1
Introducing <NakedImage />
Now that both loading=lazy
and aspect-ratio
are broadly supported (> 93% of browsers) we can avoid complex JS to achieve lazy-loaded images with placeholders!
<NakedImage />
generates minimum JS footprint, outputs a single <picture />
element and implements lazy-loading using the native loading="lazy"
attribute. The placeholder is set as the background to the image itself.