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
isLazyLoadingSupportedunlazyBoolean indicating if the browser supports native lazy loading

Types

TypeImportPurpose
UnLazyLoadOptionsunlazyOptions for the lazyLoad function

Deprecated

FunctionReplacementNotes
loadImagetriggerLoadAlias that will be removed in the next major version

Released under the MIT License.