perf: More selective resource pre-fetching
This commit is contained in:
@@ -26,7 +26,7 @@ const SettingsRoutes = React.lazy(
|
||||
const Document = React.lazy(
|
||||
() =>
|
||||
import(
|
||||
/* webpackChunkName: "document" */
|
||||
/* webpackChunkName: "preload-document" */
|
||||
"~/scenes/Document"
|
||||
)
|
||||
);
|
||||
|
||||
@@ -8,14 +8,14 @@ import { matchDocumentSlug as slug } from "~/utils/routeHelpers";
|
||||
const Authenticated = React.lazy(
|
||||
() =>
|
||||
import(
|
||||
/* webpackChunkName: "authenticated" */
|
||||
/* webpackChunkName: "preload-authenticated" */
|
||||
"~/components/Authenticated"
|
||||
)
|
||||
);
|
||||
const AuthenticatedRoutes = React.lazy(
|
||||
() =>
|
||||
import(
|
||||
/* webpackChunkName: "authenticated-routes" */
|
||||
/* webpackChunkName: "preload-authenticated-routes" */
|
||||
"./authenticated"
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user