Well, you’re here now
Assorted notes on the internet about the web, css, eleventy, shopify, node, javascript, php, dns, email, caddy, laravel, vite, web components, composer, testing, responsive, esbuild, ci and github actions.
Latest writing
-
Adding an SVG favicon with dark mode support
• 5 min
Updating my favicon and adding support for dark mode.
-
Optimising CSS minification in Liquid
• 5 min
Optimising a technique to use Liquid to minify CSS code for performance in Shopify themes.
-
Avoiding a DOMContentLoaded gotcha with readyState
• 2 min
I recently hit a race condition when a script was loading faster in some browsers.
-
Prefill a Shopify discount with the Fetch API
• 2 min
Set a prefilled discount in checkout with a fetch request.
-
Implement a low stock notice in a Shopify theme
• 6 min
A simple way to display a notice when the selected variant has a stock quantity below a specified value.
Popular posts
-
Laravel Sail, Vite and SSL with a custom domain
• 4 min
Set up Sail and Vite to develop locally under HTTPS using Caddy.
-
Using PostCSS and Autoprefixer with esbuild
• 3 min
Updating an esbuild config in a Shopify theme to utilise autoprefixer.
-
Observing cart changes in a Shopify theme
• 8 min
Identifying and responding to changes in a customer's cart.
-
Responsive images in Shopify themes
• 8 min
Current solutions to handling responsive image formats in Shopify.
-
Making a Shopify Theme App Extension for Google Site Verification
• 6 min
Whipping up a quick Shopify app to take advantage of the new theme app extension feature.
-
Adding a `robots.txt` file to an Eleventy site
• 4 min
Keep Search Console happy about your Cloudflare and Forestry URLs.
More in the archive.