You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce HTTP requests: merge files, CSS sprites, inline Image
Reduce DNS lookups: DNS caching, distributing resources to the appropriate number of host names
Reduce the number of DOM elements
The Server side
Use the CDN
Configure the ETag
Use Gzip compression for the component
Cookie aspects
Reduce the cookie size
CSS aspects
Place the style sheet at the top of the page
No CSS expressions are used
Use instead of @import
In Javascript
Place the script at the bottom of the page
Introduce javascript and CSS from the outside
Compress javascript and CSS
Delete unwanted scripts
Reduce DOM access
pictures
Optimize the picture: according to the actual color needs to choose the color depth, compression
Optimize CSS Sprite
Do not stretch images in HTML
减少
HTTP
请求:合并文件、CSS
精灵、inline Image
减少
DNS
查询:DNS
缓存、将资源分布到恰当数量的主机名减少
DOM
元素数量使用
CDN
配置
ETag
对组件使用
Gzip
压缩减小
cookie
大小将样式表放到页面顶部
不使用
CSS
表达式使用
<link>
不使用@import
将脚本放到页面底部
将
javascript
和css
从外部引入压缩
javascript
和css
删除不需要的脚本
减少
DOM
访问优化图片:根据实际颜色需要选择色深、压缩
优化
css
精灵不要在
HTML
中拉伸图片The text was updated successfully, but these errors were encountered: