shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- $elm*-HTMLElement
The HTMLElement on which to detect the background image load
Return
- -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
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space