Skip to main content
Module

x/keywork/timers/browser/mod.ts

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
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 requestAnimationFrame

Creates a promise that blocks until the DOM has loaded.