Skip to content

Commit

Permalink
Merge pull request #121 from aniketbiswas21/favicon-github
Browse files Browse the repository at this point in the history
feat(client): lazy fix
  • Loading branch information
aniketbiswas21 authored Jul 10, 2021
2 parents dec89e3 + f2939c0 commit 0776bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { lazy, Suspense } from "react";
import { Switch } from "react-router-dom";
import Loading from "pages/Loading/Loading";
import Register from "pages/Register/Register";
import RouteWrapper from "./Route";

// * Lazy Imports => Splitting the bundle in multiple parts and only calling them when required. Decreases Webpage loadtime * //
// * Use only if the component takes more than 30kb in webpack bundle * //
const Register = lazy(() => import("pages/Register/Register"));
const VaccineAvailability = lazy(
() => import("pages/VaccineAvailability/VaccineAvailability")
);
Expand Down

0 comments on commit 0776bd7

Please sign in to comment.