I need that on every page change or on some elemetents (a, input[button, submit], data-role=button) click event show loading message. I tried this piece of code:
$(document).live(`pagebeforehide`, function(){
$.mobile.showPageLoadingMsg();
//More stuff to do
});
but it’s not working.
I think you can set this up in the Global Configs:
And here is the docs for $.mobile.showPageLoadingMsg method
Here is an example of using the loading message/spinner with a click event
JS
HTML