How to reduce AdSense layout shift on an Astro blog
Measure ad-related layout shift in Astro, reserve space before an in-article slot loads, and distinguish a mobile lab result from real visitor data.
Software Engineering4 min read
Category
10 articles in this category.
Measure ad-related layout shift in Astro, reserve space before an in-article slot loads, and distinguish a mobile lab result from real visitor data.
Software Engineering4 min read
Compare Pagefind and a JSON search index on 100 and 1,000 test pages. See first-query bytes, timings, and how to measure the trade-off on your Astro site.
Software Engineering4 min read
Trace a fetch JSON parse error to an HTML response. Use status, redirect history and content type to distinguish a login page, a missing route and a fallback.
Software Engineering3 min read
Fix btoa InvalidCharacterError for Unicode text, see why café can silently encode to the wrong bytes, and round-trip UTF-8 with TextEncoder and TextDecoder.
Software Engineering3 min read
Decode the same Unix timestamp as seconds and milliseconds, verify the UTC result, and handle zero, negative values and numeric strings in JavaScript.
Software Engineering3 min read
Diagnose Python’s Extra data error by inspecting the second value. Read JSON Lines one record at a time and report the exact line when a record is malformed.
Software Engineering3 min read
Resolve a repeated local hour with Python zoneinfo. Compare fold values, recover both UTC instants, and detect ambiguous or nonexistent wall-clock inputs.
Software Engineering2 min read
Reproduce a React hydration mismatch with UTC and Kathmandu dates, render a stable first timestamp, and test local formatting at a midnight boundary.
Software Engineering4 min read
Keep customers with no matching orders in a SQL report. See how COUNT(*), COUNT(order_id), and a status filter change the result of a LEFT JOIN.
Software Engineering3 min read