Hi, The last version 1.6 prototype.js file is around 150kb!! that''s alot for a web site. I only need to use the functuallity for rating articles in my website. Do you have a smaller version of the file? What about using previous versions? I saw that 1.4 is only around 45 kb. Thanks Odelya --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, I''ve used jsmin(http://javascript.crockford.com/jsmin.html) to shrink the filesize of Prototype 1.6 down to around 80kb, but I too thought a smaller version free of formatting and comments should be offered on the website also. On Jan 16, 2008 10:47 PM, odelya <be.special-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi, > > The last version 1.6 prototype.js file is around 150kb!! that''s alot > for a web site. > > I only need to use the functuallity for rating articles in my website. > > Do you have a smaller version of the file? > > What about using previous versions? I saw that 1.4 is only around 45 > kb. > > Thanks > > Odelya > > >-- Mark Brown. www.yellowshoe.com.au --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Use apache''s deflate module to serve up javascripts and html/css and it will bring the size back down even further. All major browsers support receiving deflated pages (and apache will send uncompressed ones to incapable browsers) On 16 Jan 2008, at 13:21, Mark Brown wrote:> I''ve used jsmin( http://javascript.crockford.com/jsmin.html) to > shrink the filesize of Prototype 1.6 down to around 80kb, > but I too thought a smaller version free of formatting and comments > should be offered on the website also. > > On Jan 16, 2008 10:47 PM, odelya <be.special-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Hi, >> >> The last version 1.6 prototype.js file is around 150kb!! that''s alot >> for a web site. >> >> I only need to use the functuallity for rating articles in my >> website. >> >> Do you have a smaller version of the file? >> >> What about using previous versions? I saw that 1.4 is only around 45 >> kb.Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
But this begs me to ask...do (specifically, which) mobile browsers support deflated content? Those browsers are going to be the ones most affected by the uncompressed files. I have to assume that the iP(hone/od) Touch does with Safari in it, but what about the Nokia internet tablets? or regular phones? I would also assume that the mobiles that use Opera will have compressed JS because Opera (last I checked) forces a proxy through their servers with its browser. Any info would be great. On Jan 16, 2008 8:52 AM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > Use apache''s deflate module to serve up javascripts and html/css and > it will bring the size back down even further. All major browsers > support receiving deflated pages (and apache will send uncompressed > ones to incapable browsers) > > On 16 Jan 2008, at 13:21, Mark Brown wrote: > > > I''ve used jsmin( http://javascript.crockford.com/jsmin.html) to > > shrink the filesize of Prototype 1.6 down to around 80kb, > > but I too thought a smaller version free of formatting and comments > > should be offered on the website also. > > > > On Jan 16, 2008 10:47 PM, odelya <be.special-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > >> Hi, > >> > >> The last version 1.6 prototype.js file is around 150kb!! that''s alot > >> for a web site. > >> > >> I only need to use the functuallity for rating articles in my > >> website. > >> > >> Do you have a smaller version of the file? > >> > >> What about using previous versions? I saw that 1.4 is only around 45 > >> kb. > > Best regards > > Peter De Berdt > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 16, 9:47 pm, odelya <be.spec...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > The last version 1.6 prototype.js file is around 150kb!! that''s alot > for a web site. > > I only need to use the functuallity for rating articles in my website. > > Do you have a smaller version of the file?What functions do you use? You might find it very easy to write your own small library that provides the required functionality, even with the same API. If your script file is small, post it or provide a link. -- Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 16 Jan 2008, at 15:36, Brian Williams wrote:> But this begs me to ask...do (specifically, which) mobile browsers > support deflated content? Those browsers are going to be the ones > most affected by the uncompressed files. > > I have to assume that the iP(hone/od) Touch does with Safari in it, > but what about the Nokia internet tablets? or regular phones? I > would also assume that the mobiles that use Opera will have > compressed JS because Opera (last I checked) forces a proxy through > their servers with its browser. > > Any info would be great.As far as I know, all major mobile browsers support it. The iPhone/iPod Touch does it because it runs Webkit (and the deflating is handled by Webkit). Nokia uses Webkit too, so yes it supports deflated content. Hell, even the Nintendo DS supports deflated content (their browser is Opera-based). That said, Prototype & scriptaculous still have quite a large footprint for mobile browsers. I would tend to fall back to jquery (or for really basic stuff no framework at all) for the mobile section of our app. Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 16, 4:02 pm, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 16 Jan 2008, at 15:36, Brian Williams wrote: > > > But this begs me to ask...do (specifically, which) mobile browsers > > support deflated content? Those browsers are going to be the ones > > most affected by the uncompressed files. > > > I have to assume that the iP(hone/od) Touch does with Safari in it, > > but what about the Nokia internet tablets? or regular phones? I > > would also assume that the mobiles that use Opera will have > > compressed JS because Opera (last I checked) forces a proxy through > > their servers with its browser. > > > Any info would be great. > > As far as I know, all major mobile browsers support it. > The iPhone/iPod Touch does it because it runs Webkit (and the > deflating is handled by Webkit). Nokia uses Webkit too, so yes it > supports deflated content. Hell, even the Nintendo DS supports > deflated content (their browser is Opera-based). > > That said, Prototype & scriptaculous still have quite a large > footprint for mobile browsers. I would tend to fall back to jquery > (or for really basic stuff no framework at all) for the mobile > section of our app. > > Best regards > > Peter De BerdtThis might be what you are looking for ( http://groups.google.com/group/prototype-core/files ) Then go for the ''protopacked_v2.17b.zip'' file. In that package is everything from prototype(packed/shrunk/gzipped), scriptaculous(packed/ shrunk/gzipped) and even a combination of those: protoculous(packed/ shrunk/gzipped). Greetz, Wizz --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Jan 17, 10:50 am, Wizz <woutaw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Jan 16, 4:02 pm, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote: > > > On 16 Jan 2008, at 15:36, Brian Williams wrote: > > > > But this begs me to ask...do (specifically, which) mobile browsers > > > support deflated content? Those browsers are going to be the ones > > > most affected by the uncompressed files. > > > > I have to assume that the iP(hone/od) Touch does with Safari in it, > > > but what about the Nokia internet tablets? or regular phones? I > > > would also assume that the mobiles that use Opera will have > > > compressed JS because Opera (last I checked) forces a proxy through > > > their servers with its browser. > > > > Any info would be great. > > > As far as I know, all major mobile browsers support it. > > The iPhone/iPod Touch does it because it runs Webkit (and the > > deflating is handled by Webkit). Nokia uses Webkit too, so yes it > > supports deflated content. Hell, even the Nintendo DS supports > > deflated content (their browser is Opera-based). > > > That said, Prototype & scriptaculous still have quite a large > > footprint for mobile browsers. I would tend to fall back to jquery > > (or for really basic stuff no framework at all) for the mobile > > section of our app. > > > Best regards > > > Peter De Berdt > > This might be what you are looking for (http://groups.google.com/group/prototype-core/files > ) > > Then go for the ''protopacked_v2.17b.zip'' file. In that package is > everything from prototype(packed/shrunk/gzipped), scriptaculous(packed/ > shrunk/gzipped) and even a combination of those: protoculous(packed/ > shrunk/gzipped). > > Greetz, > > WizzI know this is bad (double-post), but for reference: with the protopacked version prototype 1.6.0 can get as small as 20.4kB (gzip +shrinkvars) That''s a BIG difference from the 121kB ''original'' o0 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---