Simplify README

This commit is contained in:
Wilson Lin 2020-07-12 17:17:15 +10:00
parent 871298dae5
commit d6b664ad1e
1 changed files with 5 additions and 4 deletions

View File

@ -4,10 +4,10 @@ An HTML minifier meticulously optimised for both speed and effectiveness, availa
**Smart** **Smart**
- Transforms `&am&` to `&am&ampamp;` which saves 2 bytes but leaves meaning intact, and leaves `≫⃒` encoded because it's longer decoded. - Transforms `&amp<` to `&&amplt;`, and leaves `≫⃒` encoded.
- Trims and collapses whitespace in `<p>` because it contains text, and removes contiguous whitespace in `<ul>` to allow for inline block layouts. - Trims and collapses whitespace in `<p>`, and removes contiguous whitespace in `<ul>`.
- Tries all three attribute value delimiters (`'`, `"`, and none) and picks the shortest, and removes them if they're the default value based on the spec. - Removes `</p>` before an `<h1>`, `shape="rect"` from `<area>`, and `="hidden"` from `hidden` attributes.
- References the entire official [entities list](./gen/data/entities.json) and [HTML/SVG namespace](./gen/data/react.d.ts) for maximum minification leverage. - Calculates the delimiter that gives the shortest attribute value (`'`, `"`, and none).
**Fast** **Fast**
@ -18,6 +18,7 @@ An HTML minifier meticulously optimised for both speed and effectiveness, availa
**Sound** **Sound**
- Well tested with a large test suite and extensive [fuzzing](./fuzz). - Well tested with a large test suite and extensive [fuzzing](./fuzz).
- References the entire official [entities list](./gen/data/entities.json) and [HTML/SVG namespace](./gen/data/react.d.ts).
- Guaranteed to return an equal or shorter amount of bytes. - Guaranteed to return an equal or shorter amount of bytes.
## Performance ## Performance