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

  1. callbacknullFunction

    A callback to call when ready

Return

  1. -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