@skyrpex/waitfor

1.0.3 • Public • Published

Wait For

A small library that provides an utility method to wait for DOM elements.

Installation

npm install @skyrpex/waitfor --save

Usage

import waitFor from "@skyrpex/waitfor";
waitFor(".container")
	.then($container => $container.append("<h1>Hello</h1>"));
import waitFor from "@skyrpex/waitfor";
let parent = document.querySelector(".container");
waitFor("h1", { parent })
	.then($h1 => $h1.html("Hello"));

Readme

Keywords

none

Package Sidebar

Install

npm i @skyrpex/waitfor

Weekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • skyrpex