Zod Validation in TypeScript: Check API Data at Runtime Before It Breaks Your UI
TypeScript types vanish at runtime, so a bad API response can still crash your UI. How to use Zod validation with safeParse for API data, forms and env vars, plus the coercion gotcha.
Why New Meta Ads Don’t Get Spend (And the Separate Ad Set Fix)
New Meta ads stuck next to a winner get almost no spend. Why delivery favors the old ad, and how a separate testing ad set gives them a fair shot.
WCAG 2.2 Checklist: 6 New Accessibility Rules and How to Fix Them on Real Sites
The six new WCAG 2.2 A and AA rules in plain words, how they fail on real sites, and the CSS and JS fixes I use for focus, targets, drags and logins.
Mock Service Worker (MSW): API Mocking for Tests and Local Development
How I use Mock Service Worker to mock APIs at the network level: Vitest setup, realistic handlers, five UI states to test, and browser mocking in dev.
Noindex vs robots.txt vs Canonical: How to Control What Google Indexes
How I keep pages out of Google the right way: robots.txt for crawling, noindex for indexing, canonical for duplicates, in WordPress, Yoast and Next.js.
LCP Image Optimization: Make Your Hero Image Load First With fetchpriority, Preload, and srcset
How I fix a slow LCP image: skip lazy-loading, add fetchpriority=high, preload only when needed, and size srcset right in Next.js and WordPress.
CORS Errors Explained: Fix Preflight, Credentials, and Allowed Origins the Right Way
How I fix CORS errors: preflight OPTIONS, credentials vs the * wildcard, Vary: Origin, nginx always, and safe Express, Next.js and WordPress setups.
Next.js Middleware and Proxy: Auth Redirects, Rewrites, and Matchers Done Right
How I use Next.js Middleware (Proxy in Next.js 16) for auth redirects, safe return paths, rewrites, matchers, cookies and headers – without breaking CSS.
The HTML dialog Element: Accessible Modals Without a Modal Library
How I replace custom modal libraries with the native HTML dialog element: showModal(), ::backdrop, form method=dialog and a focus checklist.
WordPress Heartbeat API: Stop Background Polling From Slowing Admin and Checkout
How I tame the WordPress Heartbeat API on client sites: inspect admin-ajax beats, drop it from the front end and slow wp-admin without losing post locks.
API Rate Limiting Done Right: Protect Your Backend Without Locking Out Real Users
Practical rate limiting for Node.js, Next.js route handlers and WordPress REST: token bucket vs sliding window, Redis keys, Retry-After headers, per-user vs per-IP rules, and how to avoid blocking real clients while stopping abuse.
Design Tokens for a Design System: A Practical Setup for CSS, Tailwind, React and WordPress
How I set up design tokens on client projects: primitive, semantic and component tiers in the W3C DTCG format, CSS custom properties with Style Dictionary, dark mode, Tailwind and React usage, WordPress theme.json mapping and the mistakes to avoid.