使用 PageSpeed Module 提高网站页面加载的速度

  • linux
  • 3月 1, 2014
  • 0 评论

PageSpeed Module是一个HTTP的动态扩展模块,可以用在Apache(mod_pagespeed)和Nginx(ngx_pagespeed)上编译使用,能够显著的改进网站页面加载速度,优化用户对网站的体验。
具体细节请参考PageSpeed Module官方站点

主要特点:
自动对页面资源进行优化
最新的web优化技术
40+ 优化/过滤配置参数
免费,开源,版本持续更新中
可以部署到个人站点和主机提供商,CDN厂商等等。

PageSpeed Module 采用了一些流行的web/http优化技术提升页面加载速度,如对CSS,JavaScript,Image,DNS的优化等等,具体细节如下:

  • Collapse Whitespace: reduce bandwidth usage by replacing multiple contiguous whitespace in HTML pages with a single whitespace.
  • Canonicalize JavaScript Libraries: reduce bandwidth usage by automatically replacing popular JavaScript libraries with ones hosted for free (e.g., by Google).
  • Combine CSS: reduce the number of HTTP requests by combining multiple CSS files into one.
  • Combine JavaScript: reduce the number of HTTP requests by combining multiple JavaSript files into one.
  • Elide Attributes: reduce document size by removing tags specified with default attributes.
  • Extend Cache: reduce bandwidth usage by optimizing cacheability of web pages’ resources.
  • Flatten CSS Imports: reduce the number of HTTP request round-trips by removing @import in CSS files.
  • Lazyload Images: delay the loading of images which are not visible on the client’ browser.
  • Minify JavaScript: reduce bandwidth usage by minifying JavaScript.
  • Optimize Images: optimize image delivery by introducing more inline images, compressing images, or converting GIF to PNG.
  • Pre-Resolve DNS: reduce DNS resolution time by pre-resolve DNS.
  • Prioritize Critical CSS: rewrite CSS files to load page-rendering CSS rules first.

PageSpeed Module用户使用情况:
大约350,000+ 优化过的站点
主机提供商和 CDN厂商,如:
Edgecast,Dreamhost,Go Daddy,SiteGroud等等。

u2

Related Posts

python cx-Oracle 驱动安装

安装oracle驱动 cx-Oracle驱动二进制版本下载地…

Read more

Nginx 在if语句中限制IP访问

一些web服务,出于安全考虑是不想让其他人访问到,除了添加登录用户认证外,还可以使用Nginx限制IP访问,只允许指定IP的用户访问站点或者接口。

Read more

You Missed

担心Todesk,向日葵有漏洞和数据泄露?跟我来体验下完美开源替代工具:RustDesk!

  • u2
  • 3月 20, 2026
  • 6 views

具有自我进化能力的国产大模型:MiniMax M2.7

  • u2
  • 3月 19, 2026
  • 28 views
具有自我进化能力的国产大模型:MiniMax M2.7

当AI学会读心术:MindPower框架带来的震撼与思考

  • u2
  • 3月 16, 2026
  • 37 views

AI并没有简化软件工程:它只是让糟糕的工程更容易实现了

  • u2
  • 3月 14, 2026
  • 49 views

当ChatGPT遭遇QuitGPT!

  • u2
  • 3月 13, 2026
  • 55 views

AI安全护栏:保护还是束缚?一场不对称的战争

  • u2
  • 3月 11, 2026
  • 60 views