diff --git a/ui/src/App.tsx b/ui/src/App.tsx index c6ae949d3..7ed2e0a16 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -7,8 +7,6 @@ import Media from "react-media"; import { AlertStore, DecodeLocationSearch } from "Stores/AlertStore"; import { Settings } from "Stores/Settings"; import { SilenceFormStore } from "Stores/SilenceFormStore"; -import { Fetcher } from "Components/Fetcher"; -import { FaviconBadge } from "Components/FaviconBadge"; import { ReactSelectColors, ReactSelectStyles @@ -30,6 +28,16 @@ const NavBar = React.lazy(() => default: module.NavBar })) ); +const Fetcher = React.lazy(() => + import("Components/Fetcher").then(module => ({ + default: module.Fetcher + })) +); +const FaviconBadge = React.lazy(() => + import("Components/FaviconBadge").then(module => ({ + default: module.FaviconBadge + })) +); interface UIDefaults { Refresh: number; @@ -137,8 +145,6 @@ const App = observer( settingsStore={this.settingsStore} silenceFormStore={this.silenceFormStore} /> - - )} - - + + + + ); }