Hi, the prototype.js file is about 94K, if i''m not mistaking this file is completely send to the client/browser. I think this is rather big. Would it be an idea to split up the file in parts/features? regards, ron --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You could also get the packed version of prototype + scriptaculous from http://protoculous.wikeo.be/. There was also a compressed version floating around the google group, too, but I don''t remember it''s URL. Try searching "protopacked" in the group and you should find it. - Dash - batraaf wrote:> Hi, > > the prototype.js file is about 94K, if i''m not mistaking this file is > completely send to the client/browser. I think this is rather big. > Would it be an idea to split up the file in parts/features? > > regards, ron > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
There are compressed versions you can use. Google for compressed prototype.js and you should hit some on the first page. Most get it down to 30k or so. This is usually done using whitespace stripping scripts, and then you can further reduce the client/bandwidth hit with GZ compression from your server. Note that in a properly designed site, this download will happen only once and then all further requests will be filled from cache. Walter On Jul 31, 2007, at 3:43 PM, batraaf wrote:> > Hi, > > the prototype.js file is about 94K, if i''m not mistaking this file is > completely send to the client/browser. I think this is rather big. > Would it be an idea to split up the file in parts/features? > > regards, ron > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Prototype is very self-referential. It uses itself for its own shortcuts, which makes it smaller than doing everything the "long way" internally. Go for the compressed version. On Jul 31, 3:43 pm, batraaf <ronwier...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > the prototype.js file is about 94K, if i''m not mistaking this file is > completely send to the client/browser. I think this is rather big. > Would it be an idea to split up the file in parts/features? > > regards, ron--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---