Al Francis
Al Francis

Reputation: 333

IONIC SIDEBAR LAG

I created an ionic app, currently i used the default side-menu of ionic app. I added image in the side-menu and text from providers that i made but the problem now is if every time i open the app when i press the menu button the slides is delay/laggy but when i tap in second time the slides is not delay/laggy. The delay or lag for side-menu is everytime the app open. Is these a cache problem or providers?

Here's the status

  1. Side-menu delay every 1st tap in every app opens
  2. Side-menu not delay in 2nd tap
  3. Android only

Here's my app.html

enter image description here

UPDATED

When i click this:

enter image description here

Ionic:

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

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.0.0, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.5, (and 24 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/alfrancis/Library/Android/sdk)
ios-deploy : 2.0.0
NodeJS : v8.11.3 (/usr/local/bin/node)
npm : 5.6.0
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

Upvotes: 2

Views: 804

Answers (1)

SuperStar518
SuperStar518

Reputation: 2885

You seem to use menuClose attr for menu items.

Why don't you use menuToggle instead? Thanks for attention.

Refer to this as well.

Upvotes: 3

Related Questions