Get the latest tech news
How I fixed my blog's performance issues by writing a new Jekyll plugin
💡 If you don't want to read the full story, you can check out the jekyll-skyhook plugin on GitHub here.
So I fixed this issue by using justinribeiro/lite-youtube from Google's list of recommended libraries, although I made a PR because it doesn't automatically load thumbnails for playlists like how YouTube's default embed does. Nowadays, Rails has made the wise decision to embrace JavaScript/Node tools for processing assets, and dramatically shrink Ruby's role. Amusingly, some of the only remaining issues are from external Google assets that I have no control over, like cache headers and unoptimized image formats on YouTube thumbnails:
Or read this on Hacker News