Class: AoflImg

@aofl/picture~ AoflImg

aofl-img componont lazy loads images by default as they enter the viewport.

new AoflImg()

Creates an instance of AoflImg
Source:

Extends

  • AoflElement

Members


<static, readonly> is :String

Type:
  • String
Source:

<static, readonly> properties :Object

Type:
  • Object
Source:

Methods


connectedCallback(args)

Parameters:
Name Type Argument Description
args * <repeatable>
Source:

firstWithinViewport()

Stop checking isInViewStatus and load the image
Source:

imageLoaded(e)

Parameters:
Name Type Description
e Event
Source:
Fires:
  • AoflImg#event:load

loadImage(src)

Parameters:
Name Type Description
src String
Source:

render()

Source:
Returns:
Type
Object

shouldUpdate(changedProperties)

Parameters:
Name Type Description
changedProperties String
Source:
Returns:
Type
Boolean