jQuery Mobile without outputting extra classes for entire page
I have a HTML page optimised for a mobile device, which I have written the CSS for myself. I need jQuery and jQuery Mobile for a couple of things (like the loading message from jQuery Mobile, and $.ajax from jQuery) but not much else.
Whenever I add in the jQuery Mobile JavaScript files, it processes the entire HTML page and adds its own classes to each element; whereas I'd like to disable that (running jQuery 1.9.1 and jQuery Mobile 1.3.1).
I'm aware you can disable jQuery Mobile for a particular element using
- data-role="none"
But that doesn't work when you do it on a data-role="page" div, nor does it for the body.
Can someone inform me how to use jQuery Mobile just to provide functionality, not structure/look & feel? Thanks.