Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery Mobile loading style and scripts on refresh

The way JQM loads pages is by getting the element with the attribute data-role="page" via ajax, and not the whole document.

So, how do I make JQuery Mobile load the styles and scripts from any page (or a refresh), rather than only loading them in the entry point (index.htm)?

like image 367
DrJonOsterman Avatar asked Oct 22 '22 10:10

DrJonOsterman


1 Answers

Just put them into the BODY tag.

It is described in my other answer: Why I have to put all the script to index.html in jquery mobile

like image 200
Gajotres Avatar answered Oct 24 '22 02:10

Gajotres