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
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
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).Thanks
Make sure you setup your web server to use gzip. It makes a huge
difference.
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
Checkout ToolbawksPacker…
http://svn.toolbawks.com/toolbawks_packer/trunk/
On 10/7/07, Igor K. [email protected] wrote:
Thanks
–
Posted via http://www.ruby-forum.com/.
–
Nathaniel Steven Henry Brown
604-724-6624
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.
Marnen Laibow-Koser wrote:
Igor K. wrote:
Hello,
I have a question - how to compress css/js files?
[…]For JavaScript, JSMin ( JSMin )
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
[email protected]
Igor K. wrote:
Hello,
I have a question - how to compress css/js files?
[…]
For JavaScript, JSMin ( JSMin )
can help, and there’s a Ruby implementation.
Best,
Marnen Laibow-Koser
[email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs