incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon MacDonald <simon.macdon...@gmail.com>
Subject Re: one file to rule them all: some post 2.x thoughts
Date Wed, 06 Jun 2012 17:09:02 GMT
Totally different idea. Why don't we keep driving towards the
pluginificiation of everything. Then users would select the plugins they
want to use for their app and the cordova.js file would be unique for each
users application.

Simon Mac Donald
http://hi.im/simonmacdonald


On Tue, Jun 5, 2012 at 5:56 PM, Brian LeRoux <brian.leroux@gmail.com> wrote:

> Just had a water cooler discussion about the holy grail of having one
> js file to rule them all.
>
> 1. platforms have differences but could it be feasible to ship all
> those differences in the single file and sort out which traits to load
> at runtime. this would certainly introduce a latency and parse hit.
> this would force us to really be thinking about a protocol to minimize
> platform differences instead of brute forcing it.
>
> 2. the cordova.js file could document.write a script tag including the
> auto compiled src file (still doing different files for each platform
> but the src would feel cleaner to end developers). same performance we
> have today.
>
> 3. do as we do today: different files for every platform treated as a
> build artifact.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message