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


Post New Thread  Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2007, 06:43 PM   #1
Movable Type Integration
 
Join Date: Feb 2007
Posts: 265
MT Integration is on a distinguished road
Talking Discussion: Prototype 1.5.0 Compressed

Prototype 1.5.0 Compressed
Quote:
Prototype powers a lot of sites on the web. The biggest complaint has to do with the size of the download. I've made available a fully functional and much smaller version using a series of compression and compacting techniques.
Related On SiteRelated External

None

None
__________________
You're friendly neighborhood automation routine.

Last edited by MT Integration : 08-16-2007 at 02:44 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:25 AM   #2
Jack D
 
 
Lightbulb Re: Discussion: Prototype 1.5.0 Compressed

Thanks for this! How do you compress the JS? I'd love to do the same on effects.js from Scriptaculous.
My URL:
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:25 AM   #3
Evan2004
 
 
Lightbulb Re: Discussion: Prototype 1.5.0 Compressed

This is awesome! My page loads from my dialup account are way faster.
My URL:
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:25 AM   #4
Andi Kalsch
 
 
Lightbulb Re: Discussion: Prototype 1.5.0 Compressed

Hey, this is fine, the first thing I started to do was to compress prototype myself because Firebug and other browsers show some errors when I include the compressed script.

Firebig shows:
missing ] after element list
[Break on this error] turn;var klass=window[className]={};klass.prototype=document.createElement(tag?t.. .

I haven't found a solution for this yet. I just commented out those lines.

I am working on it. Let's stay in contact about it.

Greets

Andi
My URL: http://aka-fotos.de/
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:25 AM   #5
Andi Kalsch
 
 
Lightbulb Re: Discussion: Prototype 1.5.0 Compressed

Hi Steve,

I tested your file again, it works everywhere. I think my FF2 used an old file from the cache but i don't know.
Do you have the edited file before the compression? Is it necessary to add all the ";"s?
My URL: http://aka-fotos.de
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:25 AM   #6
tanvir
 
 
Lightbulb Re: Discussion: Prototype 1.5.0 Compressed

hey... thnx for the file. and when will we get the [b]Compressed script.aculo.us 1.7[b] ??
My URL:
 
Add Post to del.icio.usFurl this Post!
Reply With Quote
Old 02-08-2007, 01:47 AM   #7
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Recent Blog: Where to Go From Here
Posts: 183
Steve has disabled reputation
Post Re: Discussion: Prototype 1.5.0 Compressed

effect.js requires builder.js - and the two of them require prototype.js version 150rc2.

Prototype, Builder, and Effects - this link includes the files as released with scriptaculous 1.7 beta 2
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:47 AM   #8
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Recent Blog: Where to Go From Here
Posts: 183
Steve has disabled reputation
Post Re: Discussion: Prototype 1.5.0 Compressed

Andi -

I've run some tests and I definitely do NOT see that error with firebug.

I did find some of my 1.5.0RC2 code did not work with the final 1.5.0 release however.

Could you provide a sample of the code you are running that presents this error?

Perhaps it's a syntax error, or there is a chance that you are using a function that I am not testing with, but usually I find that if there are any errors in the javascript I get some sort of notification with either the Web Developer Toolbar or Firebug.
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:47 AM   #9
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Recent Blog: Where to Go From Here
Posts: 183
Steve has disabled reputation
Post Re: Discussion: Prototype 1.5.0 Compressed

The ;'s are necessary - I realize there are 569 of them . I suppose you could exchange them for line breaks, but I'm not entirely sure that you could.
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:47 AM   #10
Runs This Show
 
Steve's Avatar
 
Join Date: Dec 2006
Recent Blog: Where to Go From Here
Posts: 183
Steve has disabled reputation
Post Re: Discussion: Prototype 1.5.0 Compressed

Oh jeez... I had no idea that 1.7 was released. 1.7 beta 2 is available at the wiki link above. I'll get working on 1.7 right now...
My URL: http://www.stevekallestad.com
Steve is offline  
Add Post to del.icio.usFurl this Post!
Reply With Quote