MCPcopy Create free account
hub / github.com/pywebio/PyWebIO / ready

Function ready

docs/static/pywebio.js:15–21  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

13};
14
15function ready(fn) {
16 if (document.readyState != 'loading') {
17 fn();
18 } else {
19 document.addEventListener('DOMContentLoaded', fn);
20 }
21}
22
23let demo_url = new URL(DEMO_URL);
24

Callers 1

pywebio.jsFile · 0.85

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…