UNPKG

@wezom/zz-load

Version:

Lazy loader based on IntersectionObserver API

10 lines (9 loc) 332 B
import { Options } from '../types'; export default function ( picture: HTMLPictureElement, img: HTMLImageElement, resource: string, { setSourcesOnlyOnLoad }: Options, loadActions: (loadEvent: Event, resource?: string | undefined) => void, errorActions: (errorEvent: ErrorEvent, resource?: string | undefined) => void ): void;