Skip to content

Updated my, err, ‘colorful source snippet generation script’ …

Updated my, err, ‘colorful source snippet generation script’ to pick one of a few predefined aspect ratios, so that page layouts no longer shift as tiny, blurry placeholder images are dynamically replaced by lazily loaded images.

Mentions

  1. Jan Boddez on

    And … realizing their alt texts don’t quite make sense—they’re automatically set to the image filename (and hidden on my site, as the images themselves are purely decorative). But: my ‘Share on Mastodon’ plugin passes them thru anyway. More work to be done!

    Via mastodon.social, in reply to Updated my, err, ‘colorful source snippet generation script’ ….

  2. Jan Boddez on

    Well, done. (Future ‘Mastodon’ images get alt texts only when they were explicitly set.)

    Via mastodon.social, in reply to Updated my, err, ‘colorful source snippet generation script’ ….