Namespace: lazyImages

UCASDesignFramework.lazyImages

Lazy images component. See lazy loading documentation under utilities on the index page
Source:

Methods

(static) .destroy()

Source:
Example
UCASDesignFramework.lazyImages.destroy()

(static) .init(contextopt, selectoropt, imageopt) → {Boolean}

Parameters:
Name Type Attributes Default Description
context Node <optional>
document context to limit the selector
selector String <optional>
[data-lazy-image-background]:not([data-lazy-image-prepared]) a valid CSS selector for the element to lazy load
image String <optional>
http://example.com/image.jpg an image to load when the selector is passed
Source:
Returns:
- true for success
Type
Boolean
Example
UCASDesignFramework.lazyImages.init()