Delay on tap event

Hi,

I am trying to optimize my app and finish it up now. I have a navbar and page navigation delay is very noticeable especially on android devices.

I also did all the performance improvement following this thread but the delay is still noticeable. It did improved thou.

https://getsatisfaction.com/apperyio/...

I am using JQM builder not the Ionic builder now and I understand that the 300ms click delay is no longer a problem with Ionic but how about JQM app I am building?

Do I need to implement the fastbutton or fastclick solution to speed up my app click performance?
1 person has
this question
+1
This topic is no longer open for comments or replies.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated

  • Hi Dongzhi,

    Thanks for the suggestion. Yes, this is what I am trying now. I saw your post about this.

    Quick question, how do I included that in the app? What I did is created a blank JS file copy and paste the fastclick.min.js code inside.

    And then I am not sure how to enable that in Appery for the following.

    var attachFastClick = Origami.fastclick;
    attachFastClick(document.body);

    Do I just copy and paste this two lines to the new JS script?
    • view 1 more comment
    • Thanks Don! I invoke js script call with the two lines on my login page load event and it works. I can see the improvement now. The button click is fast!

      The only problem now is page navigation is slower then button click. :)
      The button click or tap is fast but the page is not response fast enough to catch up!

      eg. when I click the navbar to switch between pages, the button already change but the page load loading is lagging behide. I guest that's something to do with I am calling services for page show/load but these must be done in most case.

      Did you encounter the same issue?
    • Hi Howard,
      That's a good question., I checked my app and I guess there is the transition delay too.

      I did a little rearch on the topic and found out that this may have something to do with JQM's page architecture.
      Here's a good read that explains it.
      http://www.gajotres.net/secrets-of-a-...
      In appery,by default, we use the Multi HTML architecture( as in my app) , in which pages are stored in different html files.

      The other architecture is Multi Page, in which all pages are stored in one HTML file.
      You can choose the option at:
      Project->app settings->General->Render all page in one HTML.

      The Multi Page architecture should give you a faster transition, (at least that's how I feel with my testing).

      But Unfortunately, in my case, if I switch to this architecture, it will break my heavily customized CSS. so may be I try consider that in next release.
      Hope this helps

      regards

      Don
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned sad, anxious, confused, frustrated