whenBackgroundImageLoaded

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.when

Detect when a background image has been loaded on an HTMLElement

Params

  1. $elm*-HTMLElement

    The HTMLElement on which to detect the background image load

Return

  1. -SPromise

    A promise that will be resolved when the background image has been loaded

Example

import { whenBackgroundImageLoaded } from '@blackbyte/sugar/dom'

// using promise
await whenBackgroundImageLoaded($elm);

Todo

  • testsnormal