I'm developing a web-based JQuery Mobile application with ASP.NET MVC 4, and I want to make it available as a smartphone application via PhoneGap.
But, JQuery Mobile and other plugins are heavy and I shouldn't download them every time user loads the page.
I want to load CSS styles, JQuery Mobile and other libraries locally.
My idea is: putting an iframe
in local html
file of app, load remote web pages without scripts and styles, and then, inject CSS styles and Javascript libraries into that iframe
.
What do you think? Do you have any better idea? if true, What is your idea? And if false, How to inject JQuery, JQuery mobile and other plugins into that iframe
???