国产欧美日本一区二区三区免费_在线午夜日韩_青久视频_91麻豆国产精品91久久久_天天干天天插天天射_天天操夜夜操B天天拍_亚洲精品第一永久地址911_色一情一乱一伦一区二区三区 _精品入口免费_中文成人精品视频久久视频_桃色播播_91嫩草香蕉国产线懂你的网站_日产国产亚洲A片无 码_久久精彩免费视频_永久精品大片www._精品国产成人_日日碰狠狠添天天爽无码av

Reduce the size of resources (HTML, CSS, and JavaScript)

Dec 22, 2015
PageSpeed ??Insights
0
On this page

This rule is triggered when PageSpeed Insights detects that one of your resources can be reduced in size by a reduction operation.

Overview

Reducing resource size means removing unnecessary bytes (for example, redundant spaces, newlines, and indentation). Compressing HTML, CSS, and JavaScript improves download, parsing, and execution speed. In addition, for CSS and JavaScript, you can further reduce the file size by renaming the variable name during the appropriate update to the HTML to ensure that the selector continues to run.

Recommendations

You should reduce the size of HTML, CSS, and JavaScript.

要縮減HTML的大小,您可以使用PageSpeed Insights Chrome ExtensionsTo generate the optimized HTML code. Analyze the HTML page, and then browse the "Reduce HTML Size" rule. Click View Optimized Content to get the optimized HTML code.

要縮減CSS的大小,您可以嘗試使用YUI Compressorcssmin.js.

To reduce the size of JavaScript, try using theClosure Compiler、JSMinOrYUI Compressor. You can create a build process that uses these tools to reduce the size of the development file, rename it, and then save it to the official version directory.

Except as otherwise noted, the content of this page is licensed under the?Creative Commons Attribution 3.0 License, and code samples are licensed under the?Apache 2.0 License. For details, see ourSite Policies.


Articles
PageSpeed ??Insights
Back to List
Nickname*:
E-mail*:
Rate*:
Comments*:

If you need to get in touch with us, here are our contact details

If you need to get in touch with us, here are our contact details
Contact number
Contact email
WeChat Contact
Jieying Network
QQ