Local Assets Loading Slow

#1

I am designing an app with enviroment:

Ionic:

   ionic (Ionic CLI)  : 4.0.3 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.1.11

Cordova:

   cordova (Cordova CLI) : 8.0.0
   Cordova Platforms     : ios 4.5.5

System:

   ios-deploy : 1.9.2
   NodeJS     : v10.7.0 (/usr/local/Cellar/node/10.7.0/bin/node)
   npm        : 6.2.0
   OS         : macOS High Sierra
   Xcode      : Xcode 9.4.1 Build version 9F2000

Environment:

   ANDROID_HOME : not set

I am using images to design the page, and when I navigate to a new page, there is a noticeable delay when loading the image. If I navigate back to the same view, then the image is loaded immediately. These images are all located in my assets folder, so there shouldn’t be this much of a delay. Has anyone experienced this? This is crippling to the user experience, and I may have to move to React Native if there isn’t a solid solution to this problem.

Also, it’s interesting to note that this does NOT happen on the simulator. I am using a real device: iPhone 7.

1 Like
#2

What does that mean?

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios Look at the console and network tab for what is going on.