Subsetting, font-display, and the wp_preload_resources filter: a complete recipe for fonts that are private, fast, and stable, including the crossorigin gotcha.
- Post Tagsfonts, Performance, self-hosted
Subsetting, font-display, and the wp_preload_resources filter: a complete recipe for fonts that are private, fast, and stable, including the crossorigin gotcha.
Release directories, an atomic symlink flip, and the three post-deploy steps everyone forgets: OPcache, the object cache drop-in, and purging every page cache.
curl said the page was fresh. Browsers got a twelve-hour-old copy. Tracing one stale page through Cloudflare APO, nginx srcache, and the Redis object cache.
How I traced 230ms of Total Blocking Time to a canvas animation and a 0.129 layout shift to a font swap, and fixed both with a few lines of code.
I recently came across Pretext, a JavaScript library by Cheng Lou that handles text measurement and layout without touching the DOM. No getBoundingClientRect, no layout reflow. It measures text using the browser’s canvas font engine and does all the line-breaking math itself. I wanted to see what it could actually do, so I built a … Continue reading Building a Canvas Text Block with Pretext
I recently redesigned my blog using Google Stitch — an AI-powered UI design tool from Google Labs — combined with Claude Code to convert the designs into a fully functional WordPress block theme. Here’s how it went. What is Google Stitch? Stitch is a free AI UI design tool from Google Labs that generates high-fidelity … Continue reading Building a WordPress Theme with Google Stitch AI
A personal AI that actually does things, for free or cheap, on hardware you own. No coding required. I’ve always been fascinated by the idea of having a personal AI assistant. Something that knows my context, can access my files, check my calendar, and actually do things instead of just chatting. The problem? Most AI … Continue reading Running Your Own AI Assistant on a Raspberry Pi: A Complete Setup Guide
The WordPress REST API offers incredible flexibility for headless setups, mobile apps, and custom admin interfaces. However, without proper optimization, API requests can become sluggish, especially as your site grows. In this post, I’ll share techniques to reduce response time and payload size for WordPress REST API endpoints based on real-world implementations. Understanding REST API … Continue reading Optimizing WordPress REST API for Better Performance
If you are a programmer, you may spend a good amount of time on the command line. Here is a small set of utility tools which have helped me. bat command You may have come across the cat command, which helps you in viewing the contents of a file. It certainly is very helpful, but … Continue reading Utility tools to boost your command line experience
Ever since I came to know about the possibility of a headless setup for WordPress, I have always been tempted to try it out. I tested out a simple setup based on Next.JS on my local setup, before going ahead with Frontity on my blog with high traffic, which now has 2 posts counting this … Continue reading The Headless WordPress Experience with Frontity