use lazy loading
This commit is contained in:
parent
f4cc751a47
commit
0772a9a8e7
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
import type { JSXElement } from "solid-js";
|
||||
import { lazy } from "solid-js";
|
||||
import { ColorModeProvider, ColorModeScript } from "@kobalte/core";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import {
|
||||
Tabs,
|
||||
TabsContent,
|
||||
|
@ -9,10 +9,11 @@ import {
|
|||
TabsTrigger,
|
||||
} from "@/components/ui/tabs";
|
||||
import Home from "@/pages/Home";
|
||||
import Browser from "@/pages/Browser";
|
||||
import Game from "@/pages/Game";
|
||||
import Footer from "@/components/Footer";
|
||||
|
||||
const Browser = lazy(() => import("@/pages/Browser"));
|
||||
const Game = lazy(() => import("@/pages/Game"));
|
||||
|
||||
export default function App(): JSXElement {
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Add table
Reference in a new issue