aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/index.js')
-rw-r--r--vnext/src/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/vnext/src/index.js b/vnext/src/index.js
index 59365d37..8064dd1f 100644
--- a/vnext/src/index.js
+++ b/vnext/src/index.js
@@ -1,10 +1,11 @@
-import { StrictMode } from 'react';
+import { StrictMode, lazy } from 'react';
import { hydrateRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { CookiesProvider } from 'react-cookie';
import './index.css';
-import Juick from './App';
+
+const Juick = lazy(() => import('./App'));
const props = window.__PROPS__ ? JSON.parse(window.atob(window.__PROPS__)) : {};