Daniel Pietzsch

Posts

Articles and Notes.

Yesterday, I spontaneously acquired a new (used) darkroom enlarger that was on offer locally:

My new Kaiser VP-6000 enlarger in dim light projecting a image onto its base plate

It’s a Kaiser VP-6000. And it included everything I need to make prints from 6x6 medium format negatives. So now I can finally start printing the photos I have been making with my Rolleiflex!




The URL for subscribing to a YouTube channel via RSS:

https://www.youtube.com/feeds/videos.xml?channel_id=ADD_CHANNEL_ID_HERE

You get the channel_id from the URL of the channel.


As much as I like Jekyll, Liquid is bloody nonsense.

It’s probably just me.

But I find its strange syntax and very limited functionality so frustrating. I always wish I could just use plain Ruby and not have to struggle every time I want to do anything in my view templates.








It turns out, lazy loading does work with responsive images in Firefox 75: for this to work, you currently have to put the loading attribute before srcset in the attribute list of an img tag. This is a bug, and will be fixed in a future release.

So, I changed my markup accordingly – both on this site and the photo journal.

As for Firefox’ implementation itself: I find it currently too lazy. A new image is only downloaded when it’s already inside the viewport. This is going to result in visitors (unnecessarily) having to wait for an image download, especially when the image is larger and/or their internet connection is not the fastest.

Chrome’s implementation on the other hand is more appropriate in my opinion: it starts downloading images marked with loading=lazy well in advance – a few full “screens” before they are actually reached via scrolling.

Anyhow: happy this got implemented in Firefox now, too, despite its implementation needing a bit more refinement in my opinion.







This site now uses lazy-loading for the Youtube video embeds. Meaning, a preview image is loaded, and only when you click that is the actual video embed requested.

After posting a few Youtube videos to this site recently, I noticed this was loading a whole lot of quite large third-party resources. And this was happening without even playing a video – very likely resulting in visitors having to download a non-trivial amount of megabytes of no use. The site was slow to load. My Lighthouse score went way down.

So I fixed it.

To lazy load the videos I wrote a Jekyll plugin for a custom Liquid tag, that will take a Youtube video URL as parameter and spit out an iframe tag that uses its srcdoc attribute to at first only load the video’s preview image and display a “Play” button.