How to disable the loading message in the header of a jQuery Mobile page

2.9k Views Asked by At

I want to disable the loading message in the header only when transitioning between jQuery Mobile pages.

Alternatively, if I can change the default "loading" text, that would also suffice.

I have tried

$(document).bind("mobileinit", function(){
   $.mobile.hidePageLoadingMsg();
});

also $.mobile.pageLoading( true );

you can see an example here

2

There are 2 best solutions below

2
Ben Wilson On

See the docs for mobileinit and use loadingMessage to set the default.

I believe you can programmatically change it with $.mobile.loadingMessage as well.

1
Arturo Molina On

Have you tried setting loadingMessage to false? http://jquerymobile.com/demos/1.0a4/docs/api/globalconfig.html