HackerTrans
TopNewTrendsCommentsPastAskShowJobs

arclight_

no profile record

Submissions

How I fixed my blog's performance issues by writing a new Jekyll plugin

arclight.run
90 points·by arclight_·12 เดือนที่ผ่านมา·47 comments

comments

arclight_
·12 เดือนที่ผ่านมา·discuss
This looks fantastic! I really like how it's static site generator-agnostic, and the intelligent CSS and above-the-fold optimizations.

I'll definitely give this a try - only wish I knew about it before I wrote my thing!
arclight_
·12 เดือนที่ผ่านมา·discuss
Thanks for sharing, those are good points.

Another aspect of image optimization that I'm aware of, but haven't even bothered with yet, is handling the art direction problem of responsive images.

Like "pan and scan" conversions of widescreen movies to the old 4:3 TV size, if you're serving a narrower image to mobile devices than say a desktop browser, the ideal image to serve is probably not a generic resize, or center-cropped version of the image. Mozilla has a nice page on responsive images that explains it better than I could: https://developer.mozilla.org/en-US/docs/Web/HTML/Guides/Res...
arclight_
·12 เดือนที่ผ่านมา·discuss
I've clicked into my non-indexed pages, and everywhere that people say it should say the reason why the page is not indexed, there simply isn't a reason mentioned. It just says the generic crawled but not indexed even when clicked into specific pages.

I've even watched YouTube videos of people going into their Search Console dashboard to make sure I'm not missing anything (and indeed I've seen where those people for some pages do see a reason, but for mine I do not).
arclight_
·12 เดือนที่ผ่านมา·discuss
No idea what would cause that as I'm just hosting static assets on Cloudflare Pages. But thanks for letting me know!
arclight_
·12 เดือนที่ผ่านมา·discuss
IIRC I followed the advice of PageSpeed or another Google page to do it that way. ¯\_(ツ)_/¯

Appreciate the feedback!
arclight_
·12 เดือนที่ผ่านมา·discuss
Simply because when I google'd my use case I didn't discover that plugin!

Maybe it would make sense to decouple the image processing code from my library so the `jekyll_picture_tag` could be used, since it's a bit orthogonal to the Propshaft-esque asset loading.
arclight_
·ปีที่แล้ว·discuss
It's important to note that this tool does not use the same container images or runtime environment that GitHub Actions actually runs. It's an approximation.

For simple use cases that won't matter, but if you have complex GitHub Actions you're bound to find varying behavior. That can lead to frustration when you're debugging bizarre CI failures.