- cacheSrc(url): {
ref: ((element: null | HTMLImageElement) => void);
} Returns {
ref: ((element: null | HTMLImageElement) => void);
}
- A function that takes an HTMLImageElement as input and sets its source with the cached image.
ref: ((element: null | HTMLImageElement) => void)
- (element): void
Parameters
- element: null | HTMLImageElement
Returns void
Sets the image source of a given HTMLImageElement by caching the image.