From 12c40ddc201a44d88f014622ee69386e5a2c4912 Mon Sep 17 00:00:00 2001 From: dubisdev Date: Sun, 9 Jul 2023 19:49:04 +0200 Subject: [PATCH] perf: improve load time --- src/main.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.tsx b/src/main.tsx index b8c92df..dffdb84 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -3,11 +3,11 @@ import ReactDOM from "react-dom/client"; import { App } from "./App"; import * as xPython from "@x-python/core"; +xPython.init(); + ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render( ); - -await xPython.init();