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

推荐订阅源

Vercel News
Vercel News
O
OpenAI News
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
云风的 BLOG
云风的 BLOG
罗磊的独立博客
S
SegmentFault 最新的问题
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
D
DataBreaches.Net
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
雷峰网
雷峰网
V
Visual Studio Blog
小众软件
小众软件
aimingoo的专栏
aimingoo的专栏
N
Netflix TechBlog - Medium
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Y
Y Combinator Blog
博客园 - 【当耐特】
G
Google Developers Blog
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
Martin Fowler
Martin Fowler
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
AI
AI
Google Online Security Blog
Google Online Security Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
博客园 - Franky
Blog — PlanetScale
Blog — PlanetScale
Webroot Blog
Webroot Blog
PCI Perspectives
PCI Perspectives
爱范儿
爱范儿
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

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.)