首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > 改善加载时间的样式和JavaScript的使用压缩,压缩,和缓存

改善加载时间的样式和JavaScript的使用压缩,压缩,和缓存

资 源 简 介

ResourceSquisher uses a combination of JavaScript/CSS minifying, concatenation, gzip compression, and both server-side and client-side caching. All methods except for concatenation are optional and can be enabled/disabled via the configuration file (RS_config.php). I have used this same method on some sites and found that it is possible to achieve a 6:1 compression ratio, as well as drastically reducing the number of HTTP requests made, while still taking advantage of a client-side cache. Special thanks to Douglas Crockford and Ryan Grove for creating JSMin (http://code.google.com/p/jsmin-php/), and to Joe Scylla for creating cssmin (http://code.google.com/p/cssmin/), on which this project is based. Usage of ResourceSquisher is very simple. Once configured for your environment (you"ll have to set some paths in RS_config.php), you can simply use the two provided scripts as the src/href for your scripts/styles. For example,

文 件 列 表

ResourceSquisher
RS_config.php
cssmin.php
jsmin.php
rsscripts.php
rsstyles.php
VIP VIP
0.286013s