perf: offload long running tasks to workers, preloading dm page data

This commit is contained in:
Samuel 2024-12-19 16:44:27 +01:00
parent cad305aa66
commit df218b9a56
18 changed files with 524 additions and 297 deletions

View file

@ -1,6 +1,6 @@
import { type Component } from "solid-js";
import { Route } from "@solidjs/router";
import { DmId, GroupId, Home, Overview } from "./pages";
import { DmId, GroupId, Home, Overview, preloadDmId } from "./pages";
import "./app.css";
@ -9,7 +9,7 @@ const App: Component = () => {
<>
<Route path="/" component={Home} />
<Route path="/overview" component={Overview} />
<Route path="/dm/:dmid" component={DmId} />
<Route path="/dm/:dmid" component={DmId} preload={preloadDmId} />
<Route path="/group/:groupid" component={GroupId} />
</>
);