Go Back   Steve Kallestad.com Discussion > Open Discussion > Article Talk


Post New Thread  Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2007, 06:44 PM   #1
Movable Type Integration
 
Join Date: Feb 2007
Posts: 264
MT Integration is on a distinguished road
Talking Discussion: Compacting Prototype.js and Scriptaculous

Compacting Prototype.js and Scriptaculous
Quote:
While compression techniques can be very effective, some of the frequently used libraries have proven difficult to compress. A guide for accomplishing smaller file sizes with two major javascript libraries.
Related On SiteRelated External

None

None
__________________
You're friendly neighborhood automation routine.

Last edited by MT Integration : 08-16-2007 at 02:51 AM. Reason: Update to original article
MT Integration is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:24 AM   #2
Jon
 
 
Lightbulb Re: Discussion: Compacting Prototype.js and Scriptaculous

This is great! I've been looking for a way to use prototype.js without all the overhead - especially considering my client still uses dialup. Hard to show off the latest redesign when it takes 30 seconds to download the site!
My URL:
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:24 AM   #3
tom
 
 
Lightbulb Re: Discussion: Compacting Prototype.js and Scriptaculous

if you are serving gzipped javascript files, be wary of this IE bug:
http://support.microsoft.com/default...&Product=ie600

basically, it intermittently futz up linked gzipped content, css and js.
My URL:
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:46 AM   #4
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Posts: 182
Steve has disabled reputation
Post Re: Discussion: Compacting Prototype.js and Scriptaculous

Somebody requested it, so I'll put it out for anybody who happens by this page: the following url is a compressed version of prototype.js version 1.50 RC1 - http://www.stevekallestad.com/dev/ja...-compressed.js

As is, it sits at 30k, with server side compression it slims down to 12k. The original source file is 61K.

As a follow-up - this one gets it down to 25K - although compressed it is still about 12k ...
http://www.stevekallestad.com/dev/ja...ssed-better.js
My URL: http://www.stevekallestad.com
Steve is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:46 AM   #5
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Posts: 182
Steve has disabled reputation
Post Re: Discussion: Compacting Prototype.js and Scriptaculous

I have an updated compressed version of scriptaculous 1.65 available for download now. Please see this article: http://www.stevekallestad.com/blog/p...ompressed.html
My URL: http://www.stevekallestad.com
Steve is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:46 AM   #6
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Posts: 182
Steve has disabled reputation
Post Re: Discussion: Compacting Prototype.js and Scriptaculous

The bug is fixed in IE sp2, which most people out there are running. Another problem exists with cacheing if you are not serving the proper headers. You should be serving an ETAG header with appropriate expiration information. Without it, IE in various versions and settings will not cache gzipped css or javascript, or any images in css files either.
My URL: http://www.stevekallestad.com
Steve is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote