Some resources that can help you decide and migrate:

📊 Benchmarks comparison if you’d be shopping for a new HTML or web page minifier:

https://github.com/j9t/minifier-benchmarks/

🌈 HTML Minifier Next presets, one feature that makes HTML Minifier easier to use:

https://github.com/j9t/html-minifier-next#presets

💡 HTML Minifier Next upgrade guide detailing some of the biggest changes when switching from HM or HMT:

https://meiert.com/blog/html-minifier-next-5/

#html #minification

GitHub - j9t/minifier-benchmarks: Regularly updated benchmarks for web page minification

Regularly updated benchmarks for web page minification - j9t/minifier-benchmarks

GitHub

Web page minification:

HTML Minifier Next is almost a year old now, coming with security updates, bug fixes, new features, and *significantly* better performance than its predecessors.

Now I strongly recommend to update—HTML Minifier (HM) and HTML Minifier Terser (HMT) have severe bugs and gaps around HTML and CSS minification.

Please do your own tests, but note that HM is officially unmaintained and HMT hasn’t been updated in years:

https://www.npmjs.com/package/html-minifier-next

#html #htmlminifier #minification

html-minifier-next

Super-configurable and well-tested web page minifier (enhanced successor of HTML Minifier). Latest version: 6.2.3, last published: 2 days ago. Start using html-minifier-next in your project by running `npm i html-minifier-next`. There are 15 other projects in the npm registry using html-minifier-next.

npm

HTML minification:

Would it be useful for you if a minifier came with the option to report obsolete and proprietary HTML code?

I’m thinking about adding a report option to HTML Minifier Next which would enable this.

If you have a preference or feedback, this would help! (Please reshare for more input!)

https://github.com/j9t/html-minifier-next/pull/254

#html #minification

yes, useful
83.3%
no
11.1%
indifferent or undecided
5.6%
Poll ended at .
Add option to report obsolete and proprietary HTML code by j9t · Pull Request #254 · j9t/html-minifier-next

Summary by CodeRabbit New Features Added reportObsoleteHTML option to detect/report obsolete or proprietary HTML elements and attributes; accepts true (logs warnings) or a custom callback. Do...

GitHub
How Small Can A Linux Executable Be?

With ever increasing sizes of various programs (video games being notorious for this), the question of size optimization comes up more and more often. [Nathan Otterness] shows us how it’s don…

Hackaday

Astro: How to Set Up More Powerful HTML Minification (in 31 Seconds), by @j9t [@frontenddogma]:

https://meiert.com/blog/astro-html-minification/

#howtos #astro #html #htmlminifier #minification #optimization

Astro: How to Set Up More Powerful HTML Minification (in 31 Seconds) · Jens Oliver Meiert

On improving HTML as well as CSS, JS, and SVG minification in Astro projects.

Web page minification:

HTML Minifier Next now comes with a zero-config mode, to enable quick, comprehensive in-place minification.

🖥️ Run `npx html-minifier-next --zero` in any folder, to compress HTML pages and inline CSS, JS, and SVG with comprehensive defaults.

(The command shares the internals and can be aborted. To test, use under version control.)

#html #htmlminifier #minification #performance

#Development #Comparisons
Minifier benchmarks · Updated comparisons of HTML minifier capabilities https://ilo.im/16ano2

_____
#HTML #Minification #Benchmarks #Metrics #WebPerf #WebDev #Frontend

GitHub - j9t/minifier-benchmarks: Regularly updated benchmarks for web page minification

Regularly updated benchmarks for web page minification - j9t/minifier-benchmarks

GitHub

RE: https://mas.to/@frontenddogma/116073609050757739

After looking at the minifier benchmarks landscape with Kirill Maltsev (htmlnano), I’ve set up a new repo to collaborate on benchmarks.

Extending samples, splitting HTML and “full” minification, adding deltas and averages have already improved the picture.

Comments and reshares welcome!

#html #minification #optimization

GitHub - j9t/minifier-benchmarks: Regularly updated benchmarks for web page minification

Regularly updated benchmarks for web page minification - j9t/minifier-benchmarks

GitHub