惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
D
Docker
GbyAI
GbyAI
B
Blog RSS Feed
博客园 - 司徒正美
博客园 - Franky
美团技术团队
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
www.infosecurity-magazine.com
www.infosecurity-magazine.com
AI
AI
O
OpenAI News
Attack and Defense Labs
Attack and Defense Labs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
S
Secure Thoughts
博客园 - 聂微东
L
LINUX DO - 最新话题
U
Unit 42
SecWiki News
SecWiki News
A
Arctic Wolf
Schneier on Security
Schneier on Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Visual Studio Blog
量子位
The Cloudflare Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
B
Blog
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Scott Helme
Scott Helme
Last Week in AI
Last Week in AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
Latest news
Latest news

Jens Oliver Meiert · On Craft and Responsibility

AWAGAM: Easier Importing and Sharing of Blocklists With Bundles · Jens Oliver Meiert Israel, the United States, and Their European Clients vs. the European People · Jens Oliver Meiert Releasing Feed Ghost, a Dual-Purpose Web Tool to Access and Subscribe to Feeds via the Internet Archive · Jens Oliver Meiert Anti-Pro-Palestine as Pro-Islamophobia, Pro-Racism, Pro-Genocide · Jens Oliver Meiert HTML Minifier Next 7 Is ESM-Only · Jens Oliver Meiert On the Two Sides and the Spectrum That Is Open Source Maintenance · Jens Oliver Meiert Beware the “First” · Jens Oliver Meiert Releasing Middleman Alerter, a Chromium Extension to Warn About Third-Party Reverse Proxies · Jens Oliver Meiert How to Provide a “Random Post” Feature With Eleventy and PHP · Jens Oliver Meiert On the Twisted Logic of Labeling Criticism of Israel as “Anti-Semitism” · Jens Oliver Meiert Websites Are Not Going to Die · Jens Oliver Meiert Slavery · Jens Oliver Meiert Releasing hihtml, a Supertool for HTML Validation, Link-Checking, and Minification · Jens Oliver Meiert HTML.md · Jens Oliver Meiert Website Optimization Measures, Part XXXVII · Jens Oliver Meiert A Decent Person · Jens Oliver Meiert 26 Tips to Become a Better Engineering Manager · Jens Oliver Meiert There Is No Elite Unless It Serves the People and the Environment · Jens Oliver Meiert AI Will Never Be Ethical or Safe · Jens Oliver Meiert A Simple Model to Address Work Performance Issues · Jens Oliver Meiert There Is No “Wrong” in CSS · Jens Oliver Meiert Releasing Searcher, a Configurable, Privacy-Minded Chromium Extension to Trigger Random Searches · Jens Oliver Meiert “Conflict” · Jens Oliver Meiert HTML Minifier Next: Zero-Config Mode, SVG Minification With SVGO, Even Faster · Jens Oliver Meiert
AI and HTML: Validating, Omitting Optional Code, and Minifying as Token Optimization · Jens Oliver Meiert
2026-05-12 · via Jens Oliver Meiert · On Craft and Responsibility

Published on May 12, 2026, filed under , , . (Share this post, e.g., on Mastodon or on Bluesky.)

Three * arguments (they're straightforward).

P.1
Error-free (i.e., valid) HTML is easier to parse.
P.2
Data that is easier to parse consumes fewer tokens.
C
Therefore, error-free HTML consumes fewer tokens.
P.1
HTML that omits non-required, optional HTML code is easier to parse.
P.2
Data that is easier to parse consumes fewer tokens.
C
Therefore, HTML that omits non-required HTML code consumes fewer tokens.
P.1
HTML that is minified is easier to parse.
P.2
Data that is easier to parse consumes fewer tokens.
C
Therefore, HTML that is minified consumes fewer tokens.

I use “easier to parse” as a shorthand for token efficiency—reducing the character count (input) and the structural ambiguity (output) that leads to token waste.

You can then argue:

If you want your HTML to consume fewer LLM tokens, ensure it’s error-free (validate the output), omit optional code, and minify it.

This is in line with what is commonly known about token optimization: Valid, optimized HTML reduces the number of input tokens as well as secondary token waste (that is, a model needs less context, makes fewer mistakes, and requires less intervention).

The Tools Are All There

Every frontend and web developer worth their salt knows that the tools are all there:

My general recommendation? Use the W3C validator, consider HTML-validate in programmatic contexts, and use either HTML Minifier Next for greatest effectiveness, minify-html for best speed, or htmlnano for another great all-around experience (disclosure: I maintain HMN, but base this on available data).

The Bizarre Scenario of AI Accomplishing What Frontend Development Advocacy Never Accomplished

Now, if we end up in a situation in which developers and AI users start to optimize their HTML (for which there are some signs)—notably, using HTML–HTML, omitting optional tags, validating, minifying aggressively—, then AI may have accomplished something I’ve personally largely given up on, which is for our field to embrace HTML as a language and ensure both correctness and a great (for fast) user experience. (Mind you that we’re far from there.)

But: This would not be due to pride in our profession and a sense of honor to ship quality work—but a mundane calculation of how to save money.

As a professional, I’d find this bizarre: We may end up inching closer to said embrace of HTML and quality output—but for reasons that couldn’t be more superficial.

* Why three, wouldn’t one argument suffice? Yes, but that argument would look more complicated (despite just coming with extra conjunctions) and therefore end up less effective.

About Me

Jens Oliver Meiert, on March 2, 2026.

I’m Jens (long: Jens Oliver Meiert), and I’m an engineering lead, guerrilla philosopher, and indie publisher. I’ve worked as a technical lead and engineering manager at various companies, including Google; I’m an open-source developer and a contributor to web standards (like HTML, CSS, WCAG); and I write and review books for O’Reilly and Frontend Dogma.

I love trying things, not only in web development and engineering management, but also with respect to politics and philosophy. Here on meiert.com I talk about some of my experiences and perspectives. (Please share feedbackinterpret charitably, keep it friendly, but do be critical.)