use lazy loading

This commit is contained in:
Adam 2024-10-15 22:19:39 -04:00
parent f4cc751a47
commit 0772a9a8e7

View file

@ -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 (
<>