Telephone: listening to a button is pressed slowly

I am developing an Android application in Phonegap. I have 3 pages, press the button, "the page will go to another page. My problem is that when I press the button, the reaction is very slow, it took 1 to 2 seconds to go to the next page.

It uses a div transition to display each page "homePage" and "imgSelectPage" is the class name for the div .

 $('.play a').click( function(e){
    e.preventDefault();
    $('.homePage').hide();
    $('.imgSelectPage').show();
});

Is there a way to increase the speed of changing one page to another by clicking the button

Thanks in advance

+4
source share
1 answer

, , . , jQuery .

- jquery, .

, .hide() .show() , @xiaowu

0

All Articles