blogs/notes.json
Notes.
Write-ups of the problems behind the work: what broke, what I tried and the code that shipped.
- 01Quantity breaks with a Shopify Discount FunctionHow I price 2-pack and 3-pack breaks with a Discount Function: tiers in a metafield, the highest tier wins, and checkout does the math.
- 02Flicker-free A/B tests on Cloudflare WorkersHow the live test on this site's home page buckets visitors on the server, counts exposures only when seen and keeps one row per visitor in D1.
- 03Why full-page screenshots of modern stores come out blankScroll-reveal sections and lazy images never paint in a one-shot full-page screenshot. Here's the screen-by-screen capture script I use instead.