ionic启动后加载页面比较慢的问题

constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen) {
    platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need.
      statusBar.styleDefault();
      splashScreen.hide();
    });
  }

为什么splashScreen.hide()之后大概要过5-6s才显示页面内容?怎么设置和优化?

ionic-cli新建的项目,直接生成的安装包

阅读 5.7k
1 个回答
新手上路,请多包涵

ionic cordova build “your platform” --prod
在你打包的命令行后面 加上 --prod

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进