I have a phonegap app using query. In the app I have the following statement:
The app works fine both from a web server, and using Adobe Phonegap Build to build native Android and IOS apps.
My question is: Does phonegap Build include the jquery library with the built app, or is the Android/IOS app loading the jquery library when it initializes on the phone?
If the app is not loading the library until initialization, should I be uploading this library to my Git repository so that PhoneGap Build will include the library in the built app (so that it doesn't have to download it at run time?)
Yes static resources like this should be bundled in your app. Even if your app requires an internet connection, it should fail gracefully when offline.
Thank you. In fact, I've found that including jQuery as part of the PhoneGap build actually reduces the Android phone app load time by a second or two.
I am using jQuery functions like the .click handler, .css() and using $(this) to reference in some functions in my .js file. How does Cordova handle this? Do I need to do something specific or can I expect it to work? Do I need to include the jQuery git files in my PhoneGap Build request (it looks like yes)? @ryanskihead @postersw