1. Home
  2. Blog
  3. Page 3

Blog, page 3

Flat vector illustration of a dark code panel sending messy data blocks through a rounded schema gate with an orange-red check shield, where only clean, neatly aligned blocks continue into a browser window
JavaScript & TypeScript 15 min read

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.

Flat vector illustration of one ad set box holding two ad cards: the winning card pulls a thick orange-red stream of coins while the new ad card gets only a thin gray trickle, with an unequal balance scale tipped toward the winner
WordPress & SEO 11 min read

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.

CSS & Design 21 min read

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.

Flat vector illustration of a browser window and a dark code editor panel with request lines flowing between them through a central rounded relay card highlighted in orange, which answers each request with a stack of mock response cards instead of a distant server
JavaScript & TypeScript 20 min read

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.

Flat vector illustration of three gates in a row in front of a browser window: a crawl gate, an index gate and a canonical gate, with one orange path showing a search crawler passing through all three to a single highlighted page
WordPress & SEO 21 min read

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.

Flat vector illustration of a browser window whose large hero image loads first, carried by an orange priority arrow ahead of a queue of smaller page resources, beside a stopwatch
Web Performance 21 min read

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.

Flat vector illustration of two browser windows on different origins linked by a request arrow through an orange checkpoint gate, beside a dark code panel of CORS response headers
APIs, Backend & Security 15 min read

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.

Flat vector illustration of a browser window with a broken unstyled login page beside a dark code panel showing a matcher config, orange accent arrows routing requests around static assets
React & Next.js 12 min read

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.

Flat vector illustration of a browser window with dimmed page content behind a translucent backdrop, a centered white modal dialog card with an orange-red focus ring on its first field, a blank keyboard key linked to the close control, and a small dark code panel
JavaScript & TypeScript 15 min read

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.

Flat vector illustration of a website browser window feeding into a WordPress admin panel with a bold orange-red heartbeat pulse line and a black metronome, sending a fan of small request cards to a dark server stack
WordPress & SEO 18 min read

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.

Flat vector illustration of an API gateway with a token bucket letting request cards through while excess requests are held back by an orange-red barrier
APIs, Backend & Security 21 min read

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.

Flat vector illustration of a central design token file feeding color swatches, spacing blocks and code panels for web, React and WordPress
CSS & Design 14 min read

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.

Up and down to move, Enter to go, Esc to close

Before you go

Planning a website launch?

Read the checks I run before any site goes live: speed, SEO, forms, accessibility and backups.

Read the launch checklist Ask on WhatsApp