Better HN
topnewbestaskshowjobs
Log inSign up

skol101

1 karma · joined Apr 18, 2012 (14y ago) · 2 submissions

Submissions

comment 14y ago · link · parent

Yep, so you just switch them off completely for Android devices with code like

$(document).bind("mobileinit", function () { //apply overrides here if (navigator.userAgent.indexOf("Android") != -1) { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; });

comment 14y ago · link · parent

Default settings aren't optimal, yes, but try looking around for answers on jQuery forum and Phonegap Google groups, and you'll find useful tips how to make interface more robust.

E.g., for my links I use following code. It binds a tap event (instead of a standard jQuery Mobile click event) to a button/link, resulting in almost no delay.

    $('#footer-menu a').on('tap vmousedown', function () {
        window.location.href = $(this).attr('href');
    });