MCPcopy Create free account
hub / github.com/UI5/webcomponents / boot

Function boot

packages/base/src/Boot.ts:70–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68};
69
70const boot = async (): Promise<void> => {
71 if (bootPromise !== undefined) {
72 return bootPromise;
73 }
74
75 const bootExecutor = async (resolve: PromiseResolve) => {
76 registerCurrentRuntime();
77
78 if (typeof document === "undefined") {
79 resolve();
80 return;
81 }
82
83 attachThemeRegistered(onThemeRegistered);
84
85 await initF6Navigation(); // depends on OpenUI5Support
86 await whenDOMReady();
87 await applyTheme(getTheme());
88 attachOpenUI5SupportListeners(); // depends on OpenUI5Support
89 insertFontFace();
90 insertSystemCSSVars();
91 insertScrollbarStyles();
92 fixSafariActiveState();
93
94 resolve();
95
96 booted = true;
97 eventProvider.fireEvent("boot");
98 };
99
100 bootPromise = new Promise(bootExecutor as (resolve: PromiseResolve) => void);
101 return bootPromise;
102};
103
104const secondaryBoot = async (): Promise<void> => {
105 await boot(); // make sure we're not in the middle of boot before re-running the skipped parts

Callers 4

bundle.light.jsFile · 0.85
defineSequenceFunction · 0.85
secondaryBootFunction · 0.85
isLegacyThemeFamilyAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…