user2632980
user2632980

Reputation: 551

How to show loader if a has data-ajax="false"?

I need to show loader before the page is opened. If I remove data-ajax="false" is works. But I need to have data-ajax attribute.

<a href="..." data-ajax="false" class="show-page-loading-msg">
Home
</a>

Upvotes: 2

Views: 530

Answers (1)

Omar
Omar

Reputation: 31732

Use $.mobile.loading()

Demo

$.mobile.loading("show");

And

$.mobile.loading("hide");

Upvotes: 2

Related Questions