Solution: Use the below tools to optimize site performance.
- First test your website on 2-speed test website https://gtmetrix.com/, https://www.webpagetest.org/
- From the above test, you can find how many resources are loading and which resource request is blocking more time
- the easiest thing you can do to reduce the website size is web optimizing the images, you can use the save for web option in photoshop or use some online compressor like optimize and compress your images and photos
- The second method which you can use to remove request blocking is using async loading of images and styles and js. I use the following library for this purpose pazguille/a load
- Combine multiple styles sheets and js into a single file and minify them and load them using the above async method
- Enable gzip compression in htaccess Enable gzip compression | GTmetrix
- Enable browser caching in htaccess Leverage browser caching | GTmetrix
- When you test your website using the Website Performance and Optimization Test, it will show you the first-byte time. its the first byte of data that you get from the server using this you can check if the server is slow and see if it can be improved.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.