Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50A08102B5 for ; Tue, 10 Dec 2013 00:19:46 +0000 (UTC) Received: (qmail 19749 invoked by uid 500); 10 Dec 2013 00:19:46 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 19716 invoked by uid 500); 10 Dec 2013 00:19:46 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 19708 invoked by uid 99); 10 Dec 2013 00:19:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 00:19:46 +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 (athena.apache.org: domain of brian.leroux@gmail.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Dec 2013 00:19:41 +0000 Received: by mail-ie0-f176.google.com with SMTP id at1so7462475iec.35 for ; Mon, 09 Dec 2013 16:19:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=vMVRHXWYPzHtvUiWncc4SUr9F+3hR+usDUQ8Efh3/eg=; b=RfRAv958xDIsyIhq1YknCN8zP5tO1tC8jT+xF6wR+m9uDQXDWpEunjGTwiokBC2OiP ZEkRc07sVlu3FfeoKkFgJMZoMoxKfefO0meF6Kxcrb45SjY3ead0oB8Qtntg+KJXup9j Xz0vQ7NjMyBnwAAfgOnVYdwIeVUHGPWahQlmVIgMo4DuU+wLdB7K0d4Ule53WBf1dXeF DEDl8vfAVgNA2tAtkDHrvo5k2wTQMuRQaQB3Pg4g9q68eKcodtsEFGeuG6HBk+E2CkcM /SniKrUIvxyrJeGar0Bu8JrI8iFtArVQc9nRXKfRA4ymZA7J/+zau+SaSOz85v6Krh/V rX+w== MIME-Version: 1.0 X-Received: by 10.43.51.65 with SMTP id vh1mr15501064icb.24.1386634761108; Mon, 09 Dec 2013 16:19:21 -0800 (PST) Sender: brian.leroux@gmail.com Received: by 10.50.114.132 with HTTP; Mon, 9 Dec 2013 16:19:21 -0800 (PST) In-Reply-To: References: Date: Tue, 10 Dec 2013 10:19:21 +1000 X-Google-Sender-Auth: rUJmyMXajn_XBVUCWKqBkZ95Ri4 Message-ID: Subject: Re: adding 'browser' as a platform for cordova.js From: Brian LeRoux To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=bcaec5299ad75e831504ed23102e X-Virus-Checked: Checked by ClamAV on apache.org --bcaec5299ad75e831504ed23102e Content-Type: text/plain; charset=ISO-8859-1 Quick update. We have a repo for this: https://git-wip-us.apache.org/repos/asf?p=cordova-browser.git On Tue, Dec 10, 2013 at 9:32 AM, Brian LeRoux wrote: > Answers to Jesse inline (and should answer other queries too). > > > >> Interesting. Can you elaborate on use-cases that this would make sense >> for? >> >> > In order of selfish priority. > > - Browser targeted deployment (an original goal of that PhoneGap thing we > based our efforts on) > - Surfacing platform incompatibilities from web browsers (such as page > visibility api vs our pause/resume thing) > - Simplest possible reference implementation for future platform targets > (ideally) > - Optimizing cordova.js (the size for exec/parse not an issue so much as > the size indicates waste) > > > >> 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. >> >> > Cool. I created a bug for this. [1] > > > >> 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. > > > I am all for consolidating them into the smallest possible implementation. > > > >> >> >> 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. >> > > I'll start a thread. Would like to dig into this thinking. > > > 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. >> > > If the goal was performance I would agree but my goal is removing > unnecessary code and getting our thinking back to browser based > development. An alt impl that does not use the cordova.js ceremonies could > clock in at 10 LOC. I'm not trying to optimize performance so much as > leaving the footprint for the userland rather than our framework code that > effectively is a noop. (The nice side effect of this thinking is that we'd > gain better perf too.) > > [1] https://issues.apache.org/jira/browse/CB-5622 > > --bcaec5299ad75e831504ed23102e--