Intorduction
The loading Speed of a website is one of the most important things for site owners and admins. This post is the most comprehensive and detailed resource you will ever found on internet.
Let’s take a sneek peek on my pagespeed otimization journey When I first got introduced to the website loading speed and performance optimization I was completely blank and after that, I learned everything about pagespeed optimization and spent weeks and weeks including weekends optimizing website loading speed.I had only mission which is to get 100 out of 100 in pagespeed performance score.
in this post I am going to share evereything I have learned
what is pagespeed optimization ?
What is Google pagespeed Insights
what is page speed insights
what are the important metics of the pagespeed optimization (lcp, fcp,tbt,cls, speed index )
- Image Compression
- convert your images in web format(webp)
- Javascript Optimization
- defer or delay non critical javascript files
- Css Optimization
- defer non critical css, remove unused css and inline the critical css
- Reducing Initial Response time
- use http2 protocol
- use the latest supported php version
- lazy load iframes
- remove unused files from the page using asset cleanup plugin
- use gzip or brotli
- use server side page caching
- enable browser cache
- preload important files
- preconnect to required. origins
- minify js css files
- localize google fonts
- reduce number of fonts used or use system fonts
- Skip layout and paint with content-visibility
- lazy load off the fold images
- choose the right webhosting
- use performance optimized theme
- delete unwanted plugins
- update wordpress plugins and themes
- use Image cdn
- reduce page redirects
- combine css files
- use cdn
- use premium dns server
- use a good security plugin – avoid bruteforce attacks changin login url etc
- disable xml-rpc
- look for any cron jobs
- keep your database light
- Enable keep-alive conncetions
- Limit the Use of Animations
- Do not host videos on your website
- disable pingbacks
- disable hotlinking