首页| 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
  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

  • shallow 3天前 成为了本站会员

0.194707s