google浏览器audits

功能翻译

audits,审计

Audits help you identify and fix common problems that affect your site's
performance,accessibility and user experience

perform an audit

审计可帮助您识别并修复影响您网站的常见问题
性能,可访问性和用户体验

执行审计

找了一个页面执行了下,给出了以下3类建议:

Minimize cookie size
The average cookie size for all requests on this page is 45 B

最大限度地减小Cookie大小
本页面上所有请求的平均Cookie大小为45 B

Optimize the order of styles and scripts (2)
The following external CSS files were included after an external JavaScript file in the document head. To ensure CSS files are downloaded in parallel, always include external CSS before external JavaScript.
main.css
1 inline script block was found in the head between an external CSS file and another resource. To allow parallel downloading, move the inline script before the external CSS file, or after the next resoure

 
465/5000
优化样式和脚本的顺序(2)
文档头中的外部JavaScript文件之后包含以下外部CSS文件。 为了确保CSS文件并行下载,请始终在外部JavaScript之前包含外部CSS。
的main.css
在外部CSS文件和其他资源之间的头部发现了1个内嵌脚本块。 要允许并行下载,请在外部CSS文件之前或下一个资源之后移动内联脚本

Remove unused CSS rules (12)
12 rules (44%) of CSS not used by the current page.
main.css: 44% is not used by the current page.

删除未使用的CSS规则(12)
当前页面未使用的CSS的12条规则(44%)。
main.css:44%未被当前页面使用。

原文地址:https://www.cnblogs.com/Tpf386/p/8873322.html