[Cosmo-dev] Compact/compile Cosmo Javascript

Matthew Eernisse mde at osafoundation.org
Thu Nov 16 15:21:13 PST 2006


I sent this link to Travis, but it seems like other folks might be 
interested as well. It's an article written by Cal Henderson from Flickr 
about serving JavaScript fast -- building, caching, compression, the 
usual suspects:

http://www.thinkvitamin.com/features/webapps/serving-javascript-fast

And while I'm at it, here's another similar, but shorter one on the 
Zimbra blog:

http://www.zimbra.com/blog/archives/2006/01/zimbra_ajax_css_digg.html


Matthew


Jared Rhine wrote:
> I've opened the following ticket to track reducing the bandwidth and number
> of HTTP transactions required to start the Cosmo PIM.  Owner, timing TBD.
> 
> -------- Original Message --------
> Subject: [Bug 7433]  New: Compact/compile Cosmo Javascript
> Date: Thu, 16 Nov 2006 13:49:19 -0800 (PST)
> From: bug-comment at osafoundation.org
> To: jared at wordzoo.com
> 
> http://bugzilla.osafoundation.org/show_bug.cgi?id=7433
> 
>            Summary: Compact/compile Cosmo Javascript
>            Product: Cosmo
>            Version: 0.5
>           Platform: All
>         OS/Version: Linux
>             Status: NEW
>           Severity: enhancement
>           Priority: P2
>          Component: Build
>         AssignedTo: bear at code-bear.com
>         ReportedBy: jared at wordzoo.com
> 
> 
> Cosmo's UI loads quite slowly, compared to common web apps.  There are
> dozens of files used, each with lots of whitespace and comments.  The user
> experience is a blank page while Cosmo loads; generally something like 8
> seconds worth.  Not noticeable for developers accessing localhost, very
> noticeable against osaf.us, and lord help anyone who is on dialup.
> 
> Ideal for bandwidth consumption would be to strip leading whitespace and
> comments from Javascript files during builds.  Dojo apparently also has a
> nice compilation system to create a single file with only the components
> actually used by the application; doing this would greatly reduce the number
> of HTTP transactions used and improve latency.
> 
> This ticket is to dramatically reduce the bandwidth consumed by starting up
> a new Cosmo web calendar session.
> 
> -- Jared
> 
> 



More information about the cosmo-dev mailing list