The reason is simple: In HTML documents, multiple whitespace characters are equivalent to one whitespace character. In other words, it is unsafe to delete whitespace characters such as line breaks, as this may cause differences in the styles of some elements. In HTML elements, there is a pre, which means preformatted text. Any whitespace inside it cannot be deleted. It is possible to have IE conditional comments in HTML. These conditional comments are part of the document logic and cannot be removed. I only think of the above 3 points, there may be other pitfalls. For dynamic pages, HTML compression may increase the CPU burden on the server, which is not worth the cost. Generally speaking, gzip compression can achieve good results. There are pitfalls to further compression, and unless you have tested it as thoroughly as Google has (Google only compresses a small number of core service pages), it is not recommended to compress HTML. |
<<: Detailed explanation of JavaScript timers
>>: Solutions to invalid is Null segment judgment and IFNULL() failure in MySql
Shtml and asp are similar. In files named shtml, s...
System: Ubuntu 16.04LTS 1\Download mysql-5.7.18-l...
What is JConsole JConsole was introduced in Java ...
1. DNS server concept Communication on the Intern...
introduction The previous article introduced the ...
In front-end development, $ is a function in jQue...
I saw an article in Toutiao IT School that CSS pe...
Table of contents Normal loading Lazy Loading Pre...
Docker is an open source engine that makes it eas...
Table of contents Background of this series Overv...
Preface In daily work or study, it is inevitable ...
Table of contents Preface Instruction Basics Hook...
This article mainly introduces 6 solutions to the...
This article describes how to install mysql5.6 us...