Skip to content

Overview ​

FunctionImportPurpose
lazyLoadunlazyInitialize lazy loading with placeholder generation
autoSizesunlazyCalculate sizes attribute without lazy loading
triggerLoadunlazyProgrammatically load an image immediately
createPlaceholderFromHashunlazyGenerate PNG data URI from hash (client-side)
createPngDataUriunlazy/blurhashGenerate PNG data URI from BlurHash (SSR)
createPngDataUriunlazy/thumbhashGenerate PNG data URI from ThumbHash (SSR)

Constants ​

ConstantImportPurpose
isCrawlerunlazyBoolean indicating if the current visitor is detected as a bot or crawler

Types ​

TypeImportPurpose
UnLazyLoadOptionsunlazyOptions for the lazyLoad function

Released under the MIT License.