shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
whenDomReady
Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.when
Wait that the dom is ready before resolving the promise
Params
- callbacknullFunction
A callback to call when ready
Return
- -Promise<void>
A promise that will be resolved when the dom is ready
Example
import { whenDomReady } from '@blackbyte/sugar/dom'
whenDomReady().then(() => {
// do something...
});Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space