diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 14:28:44 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-09 14:28:44 +0200 |
commit | a685e25ca05f08ad1b3f7fbaccc8744727bd8d27 (patch) | |
tree | e50fbc2f260a0017113c4668c3c0f3d2fd76ab87 /client/src/app/app-routing.module.ts | |
parent | 2ed6a0aedc2d2f6b1ac2fd9a1ac137772831f713 (diff) | |
download | PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.gz PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.tar.zst PeerTube-a685e25ca05f08ad1b3f7fbaccc8744727bd8d27.zip |
Try to optimize frontend
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r-- | client/src/app/app-routing.module.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 191ae6974..0f9484344 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { Routes, RouterModule, PreloadAllModules } from '@angular/router' | 2 | import { Routes, RouterModule } from '@angular/router' |
3 | |||
4 | import { PreloadSelectedModulesList } from './core' | ||
3 | 5 | ||
4 | const routes: Routes = [ | 6 | const routes: Routes = [ |
5 | { | 7 | { |
@@ -17,9 +19,10 @@ const routes: Routes = [ | |||
17 | imports: [ | 19 | imports: [ |
18 | RouterModule.forRoot(routes, { | 20 | RouterModule.forRoot(routes, { |
19 | useHash: Boolean(history.pushState) === false, | 21 | useHash: Boolean(history.pushState) === false, |
20 | preloadingStrategy: PreloadAllModules | 22 | preloadingStrategy: PreloadSelectedModulesList |
21 | }) | 23 | }) |
22 | ], | 24 | ], |
25 | providers: [ PreloadSelectedModulesList ], | ||
23 | exports: [ RouterModule ] | 26 | exports: [ RouterModule ] |
24 | }) | 27 | }) |
25 | export class AppRoutingModule {} | 28 | export class AppRoutingModule {} |