[英]ionic2 performance issues while page transitions
我正在開發用於手機的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>
誰能指導我改善頁面過渡?
您的代碼尚不清楚,但是有關如何正確實現Google地圖的信息,請參見此處: http : //www.joshmorony.com/creating-an-advanced-google-maps-component-in-ionic-2/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.