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.
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.
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.
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.
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.
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.
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.
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.
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, […]
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 […]
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 […]
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.