Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE1249FA4 for ; Wed, 6 Jun 2012 17:09:53 +0000 (UTC) Received: (qmail 92321 invoked by uid 500); 6 Jun 2012 17:09:53 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 92281 invoked by uid 500); 6 Jun 2012 17:09:53 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 92273 invoked by uid 99); 6 Jun 2012 17:09:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 17:09:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.macdonald@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-pz0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2012 17:09:47 +0000 Received: by dalh21 with SMTP id h21so9098003dal.6 for ; Wed, 06 Jun 2012 10:09:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KhJ/Sg8nWLomzPhM0/nYr/PXY6cPJCtk/tS410wsciw=; b=zKtNHiGakrtcxTeN82W5ItCQ9AE6cKbp7+QVKHT+ZrmVuX29xloZV36tqgAjOqZNwZ gZOfpyGIuKqHb6t8UxocbtPx1ECx5dnRs3hcxag6aKzxFIRuzpmZIIh8wSsBSneKpANa sMAwr2y0wRM4bFTG4O8z3vxEkFhwg8hUt9wA58gy1b2olgu69/U5NSeHTYPfg0EsIwMr TND3n1sUdlCZcK7568RGQROhV0J7rt+pHWANHWRVxVB2pcnShxFeIDkyI8lzQYbOAhB8 XFds7zYOC+C04ytsfnuyjQjER+a+o/c0yTNoMWZTU94ZtLqDZWGkyBdhMNlCcdtjOuli KiYQ== Received: by 10.68.132.201 with SMTP id ow9mr60659101pbb.160.1339002562962; Wed, 06 Jun 2012 10:09:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.202.35 with HTTP; Wed, 6 Jun 2012 10:09:02 -0700 (PDT) In-Reply-To: References: From: Simon MacDonald Date: Wed, 6 Jun 2012 13:09:02 -0400 Message-ID: Subject: Re: one file to rule them all: some post 2.x thoughts To: callback-dev@incubator.apache.org, brian.leroux@westcoastlogic.com Content-Type: multipart/alternative; boundary=047d7b10ce791e64a004c1d0d41a --047d7b10ce791e64a004c1d0d41a Content-Type: text/plain; charset=ISO-8859-1 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 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. > --047d7b10ce791e64a004c1d0d41a--