r/webdevs • u/nikitagoncharuk • Sep 19 '20
Image optimization for the blog built on Nuxt with NetlifyCMS. The path from idea to recording load speed improvements.
Hello!
I recently have done image optimization for my blog build on Nuxt and NetlifyCMS and also recorded all my struggles and thoughts on the way.
I have chosen the Netlify Large Media service for image transformations and regret that later on 😃. So read the second article don’t fall into regreters team and probably go with another tool 😃.
There are some non-regrets too. I have managed to get 100 Google PageSpeed score on 2 from 3 pages(the third is 99) on desktop and over 90 scores on 2 from 3 pages on mobile.
So here are all articles, discussing everything from idea to pages load speed improvements breakdown:
Image optimisation service for Netlify CMS and Nuxt - on how I found the Netlify Large Media service and why I decided to use it. Also what can be (and probably should be) used instead of it.
Fixing Netlify Large Media install - here is the full story on setting up Netlify Large Media. There is a lot of my anger and regrets since setting something to work with Git Large File System is a task that can break the whole repository. And you won’t have one button revert as usual 😁.
Optimized image loading in HTML and Markdown - here is everything I employed to make the improvements form images set in HTML and Markdown. How
scrsetis working and how isn’t. How to set it to images from Markdown, andloading="lazy"too.Do optimised images always bring load speed improvements? - page by page, image by image breakdown on what data improvements I got after optimizations and how my Google PageSpeed scores improved after that.
By the way, if you know why when you set sizes to <img> it only works well with vw (not the px) share it in comments. I'm really interested! (reference to that is in 3rd article)