Hello, I have a question - how to compress css/js files? because my web page size => 20kb, and size of JS''s is => 170Kb(controls.js dragdrop.js effects.js prototype.js tooltip.js and 2 other small js''s). Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Igor K. wrote:> Hello, > > I have a question - how to compress css/js files? because my web page > size => 20kb, and size of JS''s is => 170Kb(controls.js dragdrop.js > effects.js prototype.js tooltip.js and 2 other small js''s). > > ThanksMake sure you setup your web server to use gzip. It makes a huge difference. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> Make sure you setup your web server to use gzip. It makes a huge > difference.Thanks for reply Currently I developing my project on my PC. And my web server is mongrel. I future I think I''ll use an Apache and Mongrel. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Checkout ToolbawksPacker.. http://svn.toolbawks.com/toolbawks_packer/trunk/ On 10/7/07, Igor K. <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > > > Make sure you setup your web server to use gzip. It makes a huge > > difference. > > Thanks for reply > Currently I developing my project on my PC. And my web server is > mongrel. I future I think I''ll use an Apache and Mongrel. > > Thanks > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathaniel Steven Henry Brown 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Igor Using Apache2.2x to proxy a pack of mongrel processes is the way to go... The idea is for Apache to serve the static ontent such as stylesheetas and images whilst getting the mongrel processes to handle the rails stuff. On Oct 8, 4:20 am, "Igor K." <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Make sure you setup your web server to use gzip. It makes a huge > > difference. > > Thanks for reply > Currently I developing my project on my PC. And my web server is > mongrel. I future I think I''ll use an Apache and Mongrel. > > Thanks > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Igor K. wrote:> Hello, > > I have a question - how to compress css/js files?[...] For JavaScript, JSMin ( http://www.crockford.com/javascript/jsmin.html ) can help, and there''s a Ruby implementation. Best, Marnen Laibow-Koser marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Marnen Laibow-Koser wrote:> Igor K. wrote: >> Hello, >> >> I have a question - how to compress css/js files? > [...] > > For JavaScript, JSMin ( http://www.crockford.com/javascript/jsmin.html ) > can help, and there''s a Ruby implementation. >This just removes comments and whitespace it seems ... I''m using custom-rhino.jar See http://dojotoolkit.org/docs/shrinksafe It also renames local variables. So that plus gzip-compression should be pretty good. Compressing CSS as well? Look at http://cdburnerxp.se/cssparse/csstidy/changelog.php I got the PHP-version running from the commandline if you''re interested. I was trying to find out what method tinymce uses to compress javascript, but couldn''t. Stephan> Best, > Marnen Laibow-Koser > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---