简体   繁体   English

Angular 9 Cordova App 混合应用和延迟加载模块

[英]Angular 9 Cordova App Hybrid Application and Lazy Loaded Modules

I am working on an Angular9 Cordova application supposed to run only in IOS and in Android(no web).我正在开发一个 Angular9 Cordova 应用程序,该应用程序应该只在 IOS 和 Android(无网络)中运行。 I have several modules in the app.我在应用程序中有几个模块。 I am wondering, will there be any benefit if i make the module lazy loadable.我想知道,如果我让模块延迟加载会有什么好处。

I know how the lazy loaded modules works in web, but not sure in the mobile apps.我知道延迟加载模块在 web 中是如何工作的,但在移动应用程序中不确定。

Yes, I learned personally that there is great benefits in lazy loading even in Hybrid Applications.是的,我个人了解到,即使在混合应用程序中,延迟加载也有很大的好处。 Initially I was working only with Cordova and Angular.最初我只使用 Cordova 和 Angular。 Started seeing the load time improvements in the Application deployed in MobilePhones and Billboard devices with Lazy loading.开始看到延迟加载在移动电话和广告牌设备中部署的应用程序的加载时间改进。 Also when I starred working in Ionic, by default the latest ionic comes with Lazy loading page concept.此外,当我在 Ionic 工作时,默认情况下,最新的 ionic 带有延迟加载页面概念。

Its best to use Angular Lazy loading in Cordova Applications.最好在 Cordova 应用程序中使用 Angular 延迟加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM