{ } qjs-modules

lazyGlobal

Source: lib/lazyGlobal.js

Defines a global that loads its value from a module on the first read. node and bun use it for their runtime globals, so nothing is loaded before a script touches it (the web stack costs about 50 ms).

lazyGlobal(globalThis, 'URL', ['lws/url', 'url'], false);
URL;   // loads lws/url if it is in the module path, else url

Export list

Generated by utilities/doc-api.js from the lazyGlobal dump of utilities/api-surface.sh: 1 members. Edit the text above this block, not the block.

Functions: default()