Overview
| Function | Import | Purpose |
|---|---|---|
lazyLoad | unlazy | Initialize lazy loading with placeholder generation |
autoSizes | unlazy | Calculate sizes attribute without lazy loading |
triggerLoad | unlazy | Programmatically load an image immediately |
createPlaceholderFromHash | unlazy | Generate PNG data URI from hash (client-side) |
createPngDataUri | unlazy/blurhash | Generate PNG data URI from BlurHash (SSR) |
createPngDataUri | unlazy/thumbhash | Generate PNG data URI from ThumbHash (SSR) |
Constants
| Constant | Import | Purpose |
|---|---|---|
isCrawler | unlazy | Boolean indicating if the current visitor is detected as a bot or crawler |
isLazyLoadingSupported | unlazy | Boolean indicating if the browser supports native lazy loading |
Types
| Type | Import | Purpose |
|---|---|---|
UnLazyLoadOptions | unlazy | Options for the lazyLoad function |
Deprecated
| Function | Replacement | Notes |
|---|---|---|
loadImage | triggerLoad | Alias that will be removed in the next major version |