You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/installation.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,13 @@ unlazy can be used without a build step. Useful for prototyping or when you don'
38
38
- ESM build: <CdnLinkname="unlazy.js" />
39
39
- Must be used with `<script type="module">`
40
40
41
+
:::info
42
+
To keep the size of the bundle small, the global build does not include BlurHash decoding. If you want to use BlurHash, you must import the `unlazy.blurhash.iife.js` or `unlazy.blurhash.js` files instead:
43
+
44
+
- Global build: <CdnLinkname="unlazy.blurhash.iife.js" />
45
+
- ESM build: <CdnLinkname="unlazy.blurhash.js" />
46
+
:::
47
+
41
48
### Auto-Initialization
42
49
43
50
When using the global build, you can use the `init` attribute to automatically initialize and watch all elements that have a `loading="lazy"` attribute:
0 commit comments