aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/system
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2024-10-16 11:52:23 +0200
committersonartech <sonartech@sonarsource.com>2024-10-22 20:03:09 +0000
commit54166222f6a6f6e6feaf482b81f89bf732045ff3 (patch)
tree275e0fc6c0cdbbc66fdf7b4fb64435d74e5705a6 /server/sonar-web/src/main/js/apps/system
parentfb204bcee8178d160c88323f6ba8e471935bd982 (diff)
downloadsonarqube-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.tsx4
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 />} />;