1. Home
  2. Blog
  3. Page 2

Blog, page 2

Flat vector illustration of a browser window swapping one page panel for another, with a keyboard focus ring in orange-red jumping from an old navigation link to the heading bar of the new page
React & Next.js 15 min read

SPA Focus Management: How to Fix Route Changes in React and Next.js

Client-side navigation in React and Next.js doesn’t reset focus or announce the new page. Here’s how SPA focus management works: focusing the h1 with tabIndex -1, what the Next.js route announcer does and doesn’t do, aria-live regions, skip links and testing with Playwright.

Flat vector illustration of an hourglass beside an open cache drawer holding stacked data cards, with one card marked by an orange-red tag to show a cached value with a time limit
WordPress & SEO 18 min read

WordPress Transients API: How to Cache Data Without Getting Burned

The WordPress Transients API caches slow work like API calls and heavy queries. Here’s how set_transient and get_transient behave, where transients are stored, why they vanish early, autoload and cleanup rules, stampede locks, invalidation and WP-CLI debugging.

Flat vector illustration of a web page card whose content blocks are held steady by an orange-red reserved frame, while a dashed outline shows where a block would have jumped down
Web Performance 15 min read

Cumulative Layout Shift (CLS): How to Find and Fix What Moves Your Page

Cumulative Layout Shift measures how much your page jumps around while people use it. Here’s how the CLS score is calculated, what counts as unexpected, the usual causes, fixes for images, ads, embeds, web fonts and banners, measuring it with PerformanceObserver and web-vitals, and why Lighthouse and Search Console disagree.

Flat vector illustration of a browser window whose address bar carries an orange-red shield with a padlock that blocks a dashed insecure HTTP arrow, while a solid secure line runs to a server card
APIs, Backend & Security 16 min read

HSTS Explained: How Strict-Transport-Security Closes the HTTPS Downgrade Gap

A 301 redirect to HTTPS still lets the first plain HTTP request out. Here’s how HSTS closes that gap: the Strict-Transport-Security header and its directives, a safe max-age ramp, what breaks, the preload list and its requirements, setup in Nginx, Apache, Next.js, Vercel, Cloudflare and WordPress hosts, checking it with curl, and clearing it in Chrome.

Flat vector illustration of a React effect card with a cleanup return arrow cutting the line of an older fetch request, so only the newest request reaches a results card on a dark code editor panel, with the cancelled request highlighted in orange-red
17 min read

useEffect Cleanup: Fix Race Conditions and Cancel Fetches with AbortController

Stale fetch responses can overwrite newer React state when a prop or search term changes. Here’s how a useEffect cleanup fixes it: the ignore flag, AbortController and signal, handling AbortError, Strict Mode’s double run in development, timeouts, debounced search, a reusable hook, and when a data library is the better fit.

Flat vector illustration of a browser window with a busy main thread lane full of long task blocks, where one heavy gear-shaped block is lifted by a dashed arrow onto a separate background worker lane, leaving the main lane clear for a cursor click, with the moving block highlighted in orange-red
JavaScript & TypeScript 16 min read

Web Workers: How to Move Heavy JavaScript Off the Main Thread

Long JavaScript tasks block clicks and hurt INP. Here’s how I move heavy work into a Web Worker: creating a module worker, postMessage and structured clone costs, transferring ArrayBuffers, error handling, bundler setup, and when scheduler.yield() is the better fit.

Flat vector illustration of a wall clock connected to a web page card by a dashed line, where a small cursor click on the page sets off a gear-shaped task queue, beside a server rack with its own steady clock showing a real scheduler, with the server clock hand highlighted in orange-red
WordPress & SEO 15 min read

WP-Cron: Why Scheduled Tasks Run Late and How to Use a Real Cron Job

WP-Cron only checks for due tasks when someone loads a page, so quiet or cached sites miss scheduled posts and backups. Here’s how it works, how I switch to a real server cron with DISABLE_WP_CRON and WP-CLI, and how to schedule plugin events without duplicates.

Flat vector illustration of a browser window with a large back arrow button, and a frozen snapshot of the previous page held in a memory card beside it, ready to slide straight back into the window, with the back arrow highlighted in orange-red
Web Performance 15 min read

bfcache: How to Make Back Button Navigation Instant (and What Blocks It)

bfcache keeps a page frozen in memory so the back button restores it instantly. Here’s what blocks it, from unload listeners and Cache-Control: no-store to open connections, plus how I test it in DevTools and refresh stale data on restore.

Flat vector illustration of a server stack, a dark panel of masked trading logins, a candlestick chart and a broken orange-red padlock with a key
APIs, Backend & Security 8 min read

Onamae.com Desktop Cloud Breach: 26,739 Servers and Stolen Trading Logins

On October 21, 2026, GMO Internet, the Japanese company behind the Onamae.com brand, said someone had planted malicious programs on customer servers in its “Onamae.com Desktop Cloud” service. A day later it confirmed customers were seeing unauthorized activity on their trading accounts. GMO shut down every server on every plan. Here’s what’s confirmed, what isn’t, […]

APIs, Backend & Security 9 min read

Railway Security Incident (October 2026): What Happened to Your Env Vars

Between October 20 and 22, 2026, attackers broke into internal systems at Railway, the app hosting platform, and pulled customer environment variables. Some of those secrets were decrypted. Railway says the attacker was hunting for AI provider API keys. If you deploy on Railway, or on any platform that stores your secrets for you, this […]

APIs, Backend & Security 10 min read

PHP2Shell (CVE-2026-109618 and CVE-2026-109619): What It Is and How to Fix It

On October 21, 2026, the PHP project shipped emergency releases for two critical bugs that can let an attacker run code on your server without logging in. People are calling the pair “PHP2Shell.” If you run WordPress, Laravel, a custom PHP app, or anything on shared hosting, this one’s about you. Here’s what broke, who’s […]

Flat vector illustration of a server-rendered page layout and a browser-rendered copy side by side, lined up like two puzzle halves, with one mismatched tile highlighted in orange-red where they fail to fit
React & Next.js 16 min read

React Hydration Error in Next.js: What Causes It and How to Fix Each One

A hydration error means the browser’s first render didn’t match the server HTML. Here’s what causes it in React and Next.js, from dates and typeof window to localStorage and bad HTML nesting, and the fix I use for each one.

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