Replace Laravel Mix with Bud (#2643)

Co-authored-by: QWp6t <hi@qwp6t.me>
Co-authored-by: Ben Word <ben@benword.com>
This commit is contained in:
Kelly Mears
2021-11-21 21:53:01 -08:00
committed by GitHub
parent e533e1bd15
commit 69dfbfc65c
26 changed files with 3943 additions and 5588 deletions

View File

@@ -0,0 +1,12 @@
/**
* Calls a supplied function once
* document has loaded.
*
* @param {CallableFunction} onReady
* @return {void}
*/
export const domReady = (onReady) => {
window.requestAnimationFrame(function check() {
document.body ? onReady() : window.requestAnimationFrame(check);
});
};