Yes, you are right. i am talking about Google Pagespeed, and followed as suggested and what i know.
I normal speed after optimisation it opens under 1 sec ( most of the time ) but we are trying to load the website faster in slow network as well.
In slow network ( slow 3g ) i am trying to improve the FCP and for this i planned to load the header first so that user sees something as soon possible , in react or similar we can call assets on demand but in static site which is hosted on AWS s3 i can’t do that.
Services like Cloudinary will do that for you (serve the right image depending on the viewport and the browser) There’s a jekyll-cloudinary plugin for that.
You might also wanna test with Lighthouse and add PWA capabilities to define how browsers should handle cache and offline pages. jekyll-pwa plugin will help you set all of this.
Using Lighthouse and jekyll-pwa is terrific advice! I do not fully agree with you on Cloudinary. Also, the font article is quite… well… complicated. When optimizing for speed you should always choose for FOUT (flash of unstyled text). Swapping the font (font-display: swap;) is the way to go. See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display
I would always try to load everything from ONE domain (fonts with the help of https://google-webfonts-helper.herokuapp.com/fonts). This is good for speed AND privacy. Some privacy tools/blockers even block cross-domain requests. I would rather have slow images than no images at all. So, if you use optimized images, put them on your own domain. It is a little bit more work than using Cloudinary, but it is absolutely worth the effort.
Note that using optimized images has little influence on the first paint when you use lazy loading. Image size is most of the time NOT the problem. The problem is that your page does not load properly without these images.
Hi there, if you have more than 1 .js file, they should be included in 1 js compressed file. Many things could be done, I suggest you to read the article write by webjeda : 100 / 100 page Speed score (you can find this article on Google).
I think PWA wont help in first load neither in FCP ?
You are right. It does not influence the Google score. However, the service worker (part of a PWA) can cache your assets locally, which results in instant loads for returning visitors. Using local cache might be a good idea if you care about speed.
Note that reducing the amount of files (by combining them) will result in LOWER speeds once you use HTTP/2, as HTTP/2 can do (more) parallel requests. Combining code is not a great idea. Minifying is also not a great idea, as it has no real advantage over HTTP compression. The only thing that really matters is using one domain name, as it reduces the amount of DNS lookups (which are expensive).
Less is more.
PS. I think it is funny that the word ‘expensive’ now links to Kinsta . SEO humor…
PPS. You can visit https://web.dev for Google Lighthouse (with Firefox, if you love the internet).
You should self-host the Google Fonts, as suggested earlier (https://google-webfonts-helper.herokuapp.com/fonts). The JS and CSS from bootstrap should be self-hosted as well. Google Analytics should be loaded asynchronous (or not at all, because you want to ask for cookie consent first).