diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2024-10-16 11:52:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-10-22 20:03:09 +0000 |
commit | 54166222f6a6f6e6feaf482b81f89bf732045ff3 (patch) | |
tree | 275e0fc6c0cdbbc66fdf7b4fb64435d74e5705a6 /server/sonar-web/src/main/js/apps/system | |
parent | fb204bcee8178d160c88323f6ba8e471935bd982 (diff) | |
download | sonarqube-54166222f6a6f6e6feaf482b81f89bf732045ff3.tar.gz sonarqube-54166222f6a6f6e6feaf482b81f89bf732045ff3.zip |
SONAR-23205 Add lazy loading on most routes to improve build and dev server perfs
Diffstat (limited to 'server/sonar-web/src/main/js/apps/system')
-rw-r--r-- | server/sonar-web/src/main/js/apps/system/routes.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/system/routes.tsx b/server/sonar-web/src/main/js/apps/system/routes.tsx index 55351850983..cf8319590a6 100644 --- a/server/sonar-web/src/main/js/apps/system/routes.tsx +++ b/server/sonar-web/src/main/js/apps/system/routes.tsx @@ -19,7 +19,9 @@ */ import React from 'react'; import { Route } from 'react-router-dom'; -import SystemApp from './components/SystemApp'; +import { lazyLoadComponent } from '~sonar-aligned/helpers/lazyLoadComponent'; + +const SystemApp = lazyLoadComponent(() => import('./components/SystemApp')); export const routes = () => <Route path="system" element={<SystemApp />} />; |