I'm blogging about Emacs, Drupal, php and exciting subjects

Four Stages of the Same Google Fonts Line in One Evening

The same line of markup — a Google Fonts reference for Open Sans — went through four distinct states in one evening: deleted by accident, restored plainly, rewritten for performance, and finally replaced outright. Each stage is a real commit with a real, stated reason.

Sitemap Cache-Busting and the Patience Tax

Two unrelated John Mueller answers went out this week, three days apart, both covered by Search Engine Journal. One was about a sitemap trick. The other was about a link disavow.

A Two-Character Regex Fix That Was Quietly Defeating Its Own Preload Tags

A CSS preload optimization shipped, ran on every page load, and did nothing. Not "did nothing dramatic" — did nothing at all, silently, for the length of time it took someone to notice the preload tags weren't matching anything a browser would actually reuse. The fix was two characters in a regular expression.

A Fix Moved Four Times in One Evening, and the Copy Nobody Deleted

A theme library definition and its JavaScript file are both still sitting in this site's codebase right now, fully written, fully functional, and never loaded by anything. Not disabled, not commented out — just quietly disconnected from the one file that would tell Drupal to load them.

The Refactor That Silently Deleted AdSense and Google Fonts From My Site

Moving a template file from one directory to another shouldn't change what it renders. I moved html.html.twig to templates/layout/html.html.twig for Drupal 11 compatibility, and the rename quietly deleted an AdSense script tag and three Google Fonts links that had nothing to do with the move. Nobody noticed for hours.

Two Linter Frameworks, One Project File, Both Actually Running

My Emacs config loads two separate linter frameworks in the same file, both fully configured, both actually running: flymake and flycheck. They're not doing the same job for different languages, and neither one is dead configuration left over from a migration that didn't finish.

Subscribe to Linkhub