Page acceleration goes right

I would like some advice.
I am experimenting with a 300ms delay phonegap + JQM + HTML5BoilerPlate + IOS6.
Although I installed and called the new FastClick (), I still get the same delay! Is there a way to verify that FastClick really works at its best? Is there another normal delay of ~ 300 ms that I focus and mislead? What is the expected time transition between the <a> click and its page loading? Note. The html file contains all the pages.

 <body ... onload='init()' ...> function init(){ new FastClick(document.body); } ... $.mobile.bind('vclick', ... $.mobile.changePage('#...', {transition: "none"}); 

Added later in the discussion: ! [Timeline on observed events and calls

+4
source share
1 answer

try removing the transitions if you want to speed it up.

  $(document).bind("mobileinit", function() { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; } 

you can also create a custom transition http://jquerymobile.com/demos/1.0.1/docs/pages/page-transitions.html

Here you can change the rule .in, .out to set custom times

  .in, .out { -webkit-animation-timing-function: ease-in-out; -webkit-animation-duration: 200ms; } 

hope this helps.

+2
source

Source: https://habr.com/ru/post/1437691/


All Articles