You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
* Alias of [document.createElement](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)
243
246
* 🌐`sleep`
244
247
* 🔥`awaitsleep(1000,ev=> {alert(ev) })`
245
248
*`async` version of`setTimeout`
246
249
* Wonderful for animation timelines.
250
+
* 🌐`halt`
251
+
* 🔥`halt(event)`
252
+
* When recieving an event, stop propagation, and prevent default actions (such as form submit).
253
+
* Wrapper for [stopPropagation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation) and [preventDefault](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
247
254
* 🌐`tick`
248
255
* 🔥`awaittick()`
249
256
*`await` version of`rAF` /`requestAnimationFrame`.
250
-
*Animation tick.Waits 1 frame.
251
-
*Great if you need to wait foreventsto propagate.
257
+
* Waitsfor1 frame (browser paint).
258
+
*Useful to guarantee CSS properties are applied, andeventshave propagated.
252
259
* 🌐`rAF`
253
260
* 🔥`rAF(e=> {return e })`
254
-
*Animation tick. Fires when1 framehas passed. Alias of [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame)
255
-
*Great if you need to wait foreventsto propagate.
261
+
*Calls after1 frame(browser paint). Alias of [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame)
262
+
*Useful to guarantee CSS properties are applied, andeventshave propagated.
256
263
* 🌐`rIC`
257
264
* 🔥`rIC(e=> {return e })`
258
-
* Great time to compute. Fires function when JS is idle. Alias of [requestIdleCallback](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)
259
-
* 🌐`halt`
260
-
* 🔥`halt(event)`
261
-
* Prevent default browser behaviors.
262
-
* Wrapper for [preventDefault](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)