mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
jsx/solid bundle
This commit is contained in:
parent
bffa6e81d9
commit
10ea8ddcbc
16 changed files with 458 additions and 44 deletions
7
script/ready.ts
Normal file
7
script/ready.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export function ready(cb: () => void) {
|
||||
if (document.readyState === "complete") {
|
||||
cb();
|
||||
} else {
|
||||
document.addEventListener("DOMContentLoaded", cb);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue