Top all-time · #24954
trezy.codes
Personal blog · trezy.com/blogprogrammingweb
trezy.codes is a personal blog at trezy.com about programming and web. Since 2022, 3 different Hacker News readers have linked it 3 times. It is still writing: the last post was on 2026-10-06, and you can follow it by feed.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
One HN commenter links a trezy.codes post on loading images with web workers, as a resource for fetching images from a data attribute in JavaScript instead of loading them directly in the page.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Trezy is a software engineer and UX designer writing about accessibility, the open web, and the craft of building software that works for everyone.
What Hacker News says?
Instead of loading in the page, and then accessing that image, disable the loading entirely by using e.g. `data-src` instead of `src` in the HTML. You then fetch() the URL in that data attribute in your Javascript. Here's a straightforward tutorial covering that: https://trezy.com/blog/loading-images-with-web-workers [0] Note that this does mean the images will be delayed from loading, and will cause a layout shift…
Comment linking /blog/loading-images-with-web-workers
on “Pixel Accurate Atkinson Dithering for Images in HTML”Submitted “Tabs vs. Spaces” Is All Sorts of Messed Up as a story · 2 points
HN discussionSubmitted Melody: A New Way to RegEx as a story · 1 points
HN discussion