Skip to main content

GlobalPreloadHook

type alias Module.GlobalPreloadHook
Deprecated

This hook will be removed in a future version. Use initialize instead. When a loader has an initialize export, globalPreload will be ignored.

Sometimes it might be necessary to run some code inside of the same global scope that the application runs in. This hook allows the return of a string that is run as a sloppy-mode script on startup.

Definition Jump to heading

(context: GlobalPreloadContext) => string
Back to top