MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / ready

Function ready

src/_hyperscript.js:152–158  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

150);
151
152function ready(fn) {
153 if (document.readyState !== "loading") {
154 setTimeout(fn);
155 } else {
156 document.addEventListener("DOMContentLoaded", fn);
157 }
158}
159
160function mergeMetaConfig() {
161 let element = document.querySelector('meta[name="htmx-config"]');

Callers 1

_hyperscript.jsFile · 0.70

Calls 1

setTimeoutFunction · 0.50

Tested by

no test coverage detected