Performance is crucial for any website in the modern era. Consumers expect seamless, quick experiences, and websites that meet these needs are given priority by search engines like Google. In the web technology world, websites always matters. Website speed always must for any websites. When we are seeing any website and it is taking more time to load. In this case, User will distract from that website. In this article, we will learn about this tool & also will learn some techniques to increase Google Page Speed Insights score.
About Google Page Speed Insights
Page Speed Insights(PSI) is a free & useful tool introduced by Google. We can identify our website speed by using this tool. It makes recommendations to speed up a webpage based on its analysis of the content. It assesses a website’s desktop and mobile versions, giving an overall score that represents the page’s functionality.
How to use Google PSI?
For using this tool, we have to go https://pagespeed.web.dev/ URL.
Put your website URL in rectangular box. Then click on Analyze button. It gives site score card in mobile and desktop both.
How to increase our website performance???
For increase website performance, we have to use some key points.
1. gzip compression
We should check gzip compression is enabled in our site or not. For check, we can check by two ways:
- By online tool
- By developer console
By Online Tool
Using Online tool, many more online tool is available on web to check Gzip compression is enabled or not in our site.
For Example
Go to https://sitechecker.pro/gzip-test/ URL. Put your domain url and click on “Test GZIP” button.
By Developer Console
Using Developer console Steps,
- Open developer console and go to Network tab
- Refresh your website, click on website URL and go to Headers.
- Check content-encoding: gzip in Response Headers.
2. Image Lazy Loading
Image is taking more time to load. Many online tools are available to reduce image size. You can reduce image size but do carefully, because image quality should not be less.
Also read about CMD Commands
3. Minimize HTTP Request
We have to minimize HTTP request. When any website is loading then many things is loading like images, CSS, JavaScript, flash etc. Every files made HTTP request for each element. So, we should combine CSS files into one or two files. We should also put script files at bottom of the page. If any JavaScript files are small then we should put as inline in main page (means need not to use as external file).
4. Cache
when we visit any website, our system hard drive cache or temporary storage keeps all website elements like images, scripts etc. After that if next time we will visit that site, then all the elements loads from cache (means no HTTP request will generate for these elements).
We can also use some code by using htaccess files. htaccess code are below:
## EXPIRES CACHING ## ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month" ## EXPIRES CACHING ##
Anybody trying to maximize the functionality of their website should definitely use Google PSI. It guarantees fast and effective web page loading, which enhances user experience and raises search engine results. It does this by offering thorough insights and useful recommendations. In the cutthroat world of the internet, firms and webmasters can gain a significant advantage by consistently employing PSI to track and improve online performance.