【问题标题】:ionic2 performance issues while page transitions页面转换时出现 ionic2 性能问题
【发布时间】:2016-06-15 07:02:41
【问题描述】:

我正在开发适用于移动设备的 ionic 2 应用程序。但是我尝试从一个页面移动到另一个页面(即登录页面到仪表板)花费了很多时间。我已经完成了静态页面而不是动态页面。

我刚刚在 index.html 中包含了以下脚本文件,

<script src="../node_modules/crypto-js/crypto-js.js"></script>
  <!-- cordova.js required for cordova apps -->
  <script src="cordova.js"></script>
  <!-- Polyfill needed for platforms without Promise and Collection support -->
  <script src="build/js/es6-shim.min.js"></script>
  <!-- Zone.js and Reflect-metadata  -->
  <script src="build/js/angular2-polyfills.js"></script>
  <!-- the bundle built from the app's source code -->
  <script src="build/js/app.bundle.js"></script>

  <!-- google maps script is loaded last as to not block rendering -->
  <script src="https://maps.googleapis.com/maps/api/js?key=xxxxxxxxx"></script>

谁能指导我改进页面转换?

【问题讨论】:

    标签: angular ionic2


    【解决方案1】:

    您的代码并不清楚,但有关如何正确实施 Google 地图的信息,请参阅此处:http://www.joshmorony.com/creating-an-advanced-google-maps-component-in-ionic-2/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-06-06
      • 2021-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-26
      • 1970-01-01
      相关资源
      最近更新 更多