Recently redesigned my blog to show previews of the posts before you read them. Though I can't say I thought of the idea on my own--it's inspired by the way Dan Luu screenshots the beginning of his blog posts whenever he posts them on twitter (for example, https://twitter.com/danluu/status/1472142011918471170?s=20&t...)
Thanks! At first they were rendered HTML of the entire article (because nextjs makes that easy), but that caused performance issues, especially on mobile Safari. So now they're auto-generated screenshots. Glad you like them!
That's kinda a shame from a size POV. The screenshots are 1/2MiB each for a bit of text and common styles. I wonder if it would be feasible to go back to HTML but somehow smartly decide where to chop off the article to avoid much overflow, image downloads and whatnot.
Right? The problem is articles could potentially have early media content, specifically a fat youtube iframe, in the case of the DIY 3d scanner article.
I'm glad for this feedback, though. I'll play around with slightly dropping image quality (currently it's JPEG output at quality = 100), and lazy-loading.
Comments (1,383) 1051 threads
Show all comments
Showing thread 35 of 1051
Recently redesigned my blog to show previews of the posts before you read them. Though I can't say I thought of the idea on my own--it's inspired by the way Dan Luu screenshots the beginning of his blog posts whenever he posts them on twitter (for example, https://twitter.com/danluu/status/1472142011918471170?s=20&t...)
I'm glad for this feedback, though. I'll play around with slightly dropping image quality (currently it's JPEG output at quality = 100), and lazy-loading.
Continue this thread — 1 reply