What are the ways we can improve our pagespeed of the webpage?
Before we know the answer to that! We will talk about why pagespeed is important and how can we measure the performace or the pagespeed
We will recommend you to use two websites to test the pagespeed of your website
Google Pagespeed insight is a free tool which crawls a single webpage and checks the pagespeed of the webpage
It gives a full report of the time taken for your webpage to load on mobile and on desktop. It also gives a score from 100
A good score would be around 80+ on desktops and 60+ on mobile
If you want to check the pagespeed of the overall website, we recommend you to use this Pagespeed checker
To simply put it, no one likes a slow website
Google SEO values a good pagespeed webpage and they rank your website higher
It also improves the visiotors experience!
There are 3 Ways we can come up with:
1. Cache and Compression using the Htaccess file
2. Removing any redundant and uneccessary data or code
3. Placing the Scripting such as javascripting at the end of the Html Document
Making your code efficient is important. This is the same for Javascripting code and also CSS scripting
If the code is not run or is unneccessary, remove it as it slows down the webpage
You have been taught to placed the script tags or any scripting under the head tag or near the top
This is the correct way of doing it but, it does make your webpage slower and so it's better to place the Scripting at the end of the body. So the webpage or Html Is loaded first then the Scripting
<script src="Script.js"></script> </body>
This will improve the pagespeed of your webpage by a little!
Don't worry! In most cases, this won't affect your website function