Archive for September, 2007

提升网页显示速度

如果做才能提升网页的显示速度呢?以前也开发过一些网站,下面的东西真的还没注意。希望给朋友们提个醒:

a) CSS创建到单独的文件里,并且在网页首部包含CSS文件的方式来使用CSS

b) 移除不需要的JS,有些JS真的很费资源。

c) 把扩展JS放到网页底部或者template engine中去。

d) 开启 Apache gzip/mod_deflate 压缩

e) 开启 ……

No Comments

用eAccelerator让PHP运行提速1-10倍

引用官方:
   eAccelerator is a free open-source PHP accelerator, optimizer, and
dynamic content cache. It increases the performance of PHP scripts by
caching them in their compiled state, so that the overhead of compiling
is almost completely eliminated. It also optimizes scripts to speed up
their execution. eAccelerator typically reduces server load and
increases the speed of your PHP code by 1-10 times.

No Comments