Mike Fallows

Well, you’re here now

Assorted notes on the internet about dns, the web, css, eleventy, shopify, node, javascript, php, email, web components, composer, caddy, laravel, vite, testing, ci, github actions, responsive and esbuild.


Latest writing

  1. Adding an SVG favicon with dark mode support
    • 5 min

    Updating my favicon and adding support for dark mode.

  2. Optimising CSS minification in Liquid
    • 5 min

    Optimising a technique to use Liquid to minify CSS code for performance in Shopify themes.

  3. Avoiding a DOMContentLoaded gotcha with readyState
    • 2 min

    I recently hit a race condition when a script was loading faster in some browsers.

  4. Prefill a Shopify discount with the Fetch API
    • 2 min

    Set a prefilled discount in checkout with a fetch request.

  5. 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

  1. Laravel Sail, Vite and SSL with a custom domain
    • 4 min

    Set up Sail and Vite to develop locally under HTTPS using Caddy.

  2. Using PostCSS and Autoprefixer with esbuild
    • 3 min

    Updating an esbuild config in a Shopify theme to utilise autoprefixer.

  3. Observing cart changes in a Shopify theme
    • 8 min

    Identifying and responding to changes in a customer's cart.

  4. Responsive images in Shopify themes
    • 8 min

    Current solutions to handling responsive image formats in Shopify.

  5. 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.

  6. 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.