import * as keywork from "https://deno.land/x/keywork@v6.0.1/timers/browser/mod.ts";
Keywork includes promise-based utilities for working with the DOM.
Browser
waitUntilDOMReady
Creates a promise that blocks until the DOM has loaded.
import { waitUntilDOMReady } from 'keywork/timers/browser'
await waitUntilDOMReady()
requestAnimationFramePromise
Promise wrapper around requestAnimationFrame
import { requestAnimationFrame } from 'keywork/timers/browser'
await requestAnimationFrame()
Functions
Promise wrapper around | |
Creates a promise that blocks until the DOM has loaded. |