Commit 957c5810 authored by Romain Casati's avatar Romain Casati
Browse files

Kernel-loader: dynamically import CSS.

parent 817ef0b8
import { PromiseDelegate } from "promise-delegate";
import { KernelBase } from "@basthon/kernel-base";
// css (mainly for spinner)
import "./style.css";
declare global {
interface Window {
......@@ -121,6 +119,10 @@ export class KernelLoader {
// launch kernel init
this.kernelAvailable().then(() => this.kernel?.init());
// dynamically import css
// @ts-ignore
import("./style.css");
const layer = `basthon-loader-${fullscreen ? "full" : "foot"}`;
// dynamically adding the loader to the DOM
const root = document.createElement("div");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment