My angular 12 application is large and takes time to load the first time for any user. No api is triggered until all js files are loaded. If I see in Dev Tools (js enabled), You see the below screen shot. Is there anyway I can lazy load these files?
您需要在app.routing.ts中启用lazyloading路由,如下所示:
const appRoutes: Routes = [ { path: 'foobar', loadChildren: () => import('./foobar.module').then(m => m.FoobarModule), }];
只有当用户导航到该路由时,才会加载该模块.
雷蓓蓓的项目管理实战课 -〔雷蓓蓓〕
人人都能学会的编程入门课 -〔胡光〕
罗剑锋的C++实战笔记 -〔罗剑锋〕
正则表达式入门课 -〔涂伟忠〕
分布式系统案例课 -〔杨波〕
Spark核心原理与实战 -〔王磊〕
说透芯片 -〔邵巍〕
手把手带你写一门编程语言 -〔宫文学〕
全链路压测实战30讲 -〔高楼〕
React Native 新架构实战课 -〔蒋宏伟〕
遗留系统现代化实战 -〔姚琪琳〕
人人都用得上的数字化思维课 -〔付晓岩〕
无涯教程 - TensorFlow教程
无涯教程 - 进程通信教程
无涯教程 - Meteor教程
无涯教程 - Derby教程
无涯教程 - 函数式编程教程
无涯教程 - HTML5教程
无涯教程 - Git教程
无涯教程 - PyQT6教程