phonegap build - Is Cordova.js Necessary? -
if not need access device's camera, contacts, gps, etc, there reason not eliminate cordova.js file? maybe improve loading time. built , previewed app commenting out script tag , seems work fine, maybe there more cordova.js accessing device api's don't know about.
if don't use it, no, don't need it. aren't building website then, essentially?
cordova lets build app embedding browser in platform-specific app, app developer can user javascript. cordova.js provides transparent access various apis control hardware, if don't use them, may not need cordova.js.
but apart device apis, cordova might implement standard browser javascript function missing browsers (polyfill). far know cordova doesn't out of box, although there plugins (like one, example).
still, when in doubt, in terms of performance doesn't matter much. cordova.js part of application, no download necessary after installation. , loading local js file in browser isn't overhead, on phone.
Comments
Post a Comment