Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-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 6F3E817648 for ; Fri, 22 Jan 2016 06:33:19 +0000 (UTC) Received: (qmail 46484 invoked by uid 500); 22 Jan 2016 06:33:18 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 46443 invoked by uid 500); 22 Jan 2016 06:33:18 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 46431 invoked by uid 99); 22 Jan 2016 06:33:18 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2016 06:33:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CD03BC013F for ; Fri, 22 Jan 2016 06:33:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gTacD9FucWog for ; Fri, 22 Jan 2016 06:33:17 +0000 (UTC) Received: from mail-ob0-f179.google.com (mail-ob0-f179.google.com [209.85.214.179]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id B3A8843F5A for ; Fri, 22 Jan 2016 06:33:16 +0000 (UTC) Received: by mail-ob0-f179.google.com with SMTP id is5so55214910obc.0 for ; Thu, 21 Jan 2016 22:33:16 -0800 (PST) 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=U7e9JiejDgV/Rlril8FDkOgIX1F31tdLA//iIKuKHzs=; b=x/hV+5Llj4IvjCHpD3SxbXfvnwFTQQJGTeGoAQzD8mknGr6k1nFlXIisVRSBK9jzrA qIA7JKUCErcYDzZ9cTE8ZNa3IXxkEbtnu2ujRI6U4YNftSv2w7vHpF7yfZttH79XRHNx vA4K1VEr+R0rasGzy3VIMcrFsPvgZiRXbpA3MRxeBr3GNkt7sMLySuqB48iCg879VqaP dmysJx5VhP8nMpa+MeWM0Las8tG8oIhpLlrgpUwz53o7/LzMNtlcpbHdwnvej/hIy6yz CKiGyAJ9wZnL1WP53NUW5yIB2Fr2vpurMRtcL99r7KpE06wc+LmrqIFFbmzoD4rw6GOP RaBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=U7e9JiejDgV/Rlril8FDkOgIX1F31tdLA//iIKuKHzs=; b=XvqIsYnjF2/rIpOdrwC1EwmNP9eDGApJT+smie6bo312O2Ej/iIWhfiNHH9o9LZTQV pTe48apGIkadGCFVEbR4wXkKBAO+IbpaTrF+hWz64QdyKdOqPV3Q5bkAQa2b9p0VvgT9 KRL18jVRhadZo/f+GGPhCWt/AezOFWwSZ6ImGs4XVNk1u7fCo1p59IhlrcrwtVSjMxyd msg1Utjg472Z6PUdgZYaf9TR1e/lSEKFi5Xn7hPquY8xUGqUonHGKd18vRi9xEo3g4Be nWTSwC1RFRHfzBCn65pXqmgJW5v1ElgNHI1m+yF34M5VhIlvC16PkaDl4QjDKxnhP717 nBlg== X-Gm-Message-State: AG10YOR5e//fCKUP5TyWgC6upgzypJxnx+XI2eca+zNEgKJKqk0w+LY9STpc6b7aDm4KhqMBcGLS9OWtzdMsWg== X-Received: by 10.182.138.68 with SMTP id qo4mr1062537obb.26.1453444396008; Thu, 21 Jan 2016 22:33:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.243.163 with HTTP; Thu, 21 Jan 2016 22:32:46 -0800 (PST) In-Reply-To: References: <1453350582475-51348.post@n4.nabble.com> <1453370641581-51351.post@n4.nabble.com> <1453370785839-51352.post@n4.nabble.com> From: jude Date: Thu, 21 Jan 2016 22:32:46 -0800 Message-ID: Subject: Re: flexjs game hugryhero To: dev Content-Type: multipart/alternative; boundary=089e0160c42ceccd6e0529e66486 --089e0160c42ceccd6e0529e66486 Content-Type: text/plain; charset=UTF-8 Even if the initial download size is bigger it can actually load faster. This is because: *Fetching resources over the network is both slow and expensive: the download may require multiple roundtrips between the client and server, which delays processing and may block rendering of page content, and also incurs data costs for the visitor. [1]* So using data uri's can get you a faster TOF (time of flight) page render. Not sure if I'm using that right but it sounds cool. The downside is that if you reload the page nothing is in the cache. But then again, if you plan it right you should only be downloading the changed content (a small JSON object). I'm using data URI's in a few places and for small graphics like lines and boxes and it's only a few lines of content. The reason I'm doing this is to translate an SVG graphic into something older browsers can render, for example, the webkit in AIR does not render SVG (in my tests) so converting those to data URI allows the page to render as expected. Google has some good info but the information shouldn't be taken as gospel. They are still catching up to things we are used to. For example, Angular JS is being rewritten from the ground up. [1] https://developers.google.com/speed/docs/insights/LeverageBrowserCaching On Thu, Jan 21, 2016 at 8:53 AM, OmPrakash Muppirala wrote: > Any reason we want to embed images? It makes sense in a swf because it is > a compact file format. > > For the HTML version if we stick a big base 64 image in the minified code, > we are unnecessarily making the initial download size bigger. > > A better approach would be to use spritesheets when dealing with image > data. These spritesheets should be downloaded on demand like all other > assets. > > Thanks, > Om > On Jan 21, 2016 8:43 AM, "Alex Harui" wrote: > > > > > > > On 1/21/16, 8:24 AM, "Michael Schmalle" > wrote: > > > > >If/when you have time, could you make a JIRA that sort of outlined the > > >process for the base64 encoding? I am good at somethings but something > > >like > > >this I really don't have any experience, I know the hooks in the > compiler > > >and such but what would actually be involved in getting the bytes to > emit > > >out. > > > > I would have to do research as well. Maybe Josh can provide more detail. > > My concern is, if overused, embeds could make the html file really huge. > > > > -Alex > > > > > --089e0160c42ceccd6e0529e66486--