• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
拿一份干净工资,过一个简单生活
c#——最优雅的语言
博客园    首页    新随笔    联系   管理    订阅  订阅
web效率14條規則(轉)
Make fewer HTTP requests(尽量减少http的请求次数)
Use a CDN(镜像,并行下载)
Add an Expires header(使用browser cache)
Gzip components(压缩下载内容)
Put CSS at the top(避免重复页面渲染)
Move JS to the bottom(优先加载page)
Avoid CSS expressions(避免CSS运算)
Make JS and CSS external(尽量公用JS和CSS)
Reduce DNS lookups(域名层级不宜太深)
Minify JS(压缩JS容量)
Avoid redirects(避免经由browser的跳转)
Remove duplicate scripts(避免重复代码)
Turn off ETags(关闭Entity Tags)
Make AJAX cacheable and small(用AJAX时也需要注意cache)
文章出处:http://www.diybl.com/course/1_web/webjs/200824/99498.html
posted on 2008-11-17 08:15  老头  阅读(363)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3