Interesting. Can you elaborate on use-cases that this would make sense for?
>> When I do use this in a browser I get an error looking for >> cordova_plugins.js ...how do we feel this should be handled? > I think this file is created the first time you install a plugin. It is acceptable that cordova_plugins.js does not exist, as this should be caught, and recovered from in all platforms. Yes, this file will be created when any plugin is added. The code you posted is essentially the FirefoxOS exec code, which is essentially the Windows8 exec code, maybe we should just make this a default exec. >> >> Should we consider deprecating pause/resume for page visability api? >> > Makes sense to me. I think there is still value in having a distinction between the 2. It may make sense for the browser to use visibility to trigger pause/resume, but I don't think native platforms should necessarily. Worth some experimentation and more discussion though. Re: size of the file. There are several optimizations we could add, but as part of packaged apps, load time has not seemed to be an issue in awhile. Measurement should come first. @purplecabbage risingj.com On Mon, Dec 9, 2013 at 10:24 AM, Andrew Grieve <[email protected]> wrote: > Browser as a platform => Like a lot! > > > On Mon, Dec 9, 2013 at 1:24 AM, Brian LeRoux <[email protected]> wrote: > > > More for discussion than review. > > > > https://github.com/apache/cordova-js/pull/57/files > > > > Clocks in at a disturbing 44kb so we clearly have room for optimization > on > > the baseline of our platform. (Not a criticism: an observation.) > > > > I have a few questions for them whom are more familiar w/ cordova.js than > > I. > > > > When I do use this in a browser I get an error looking for > > cordova_plugins.js ...how do we feel this should be handled? > > > I think this file is created the first time you install a plugin. > > > > > I actually > > think a browser target plugins and all is not a terrible thing for us. > > Cordova is a rather sophisticated polyfill machine so why not. > > > Not sure what you're trying to say here. > > > > > > > Should we consider deprecating pause/resume for page visability api? > > > > Makes sense to me. >
