Whether we have a WordPress site or any site, the speed of the site is a big issue. Almost everyone is worried about it. Because if the size of your site is large then your site will take longer to load and if your site takes longer to load then you will lose visitors to your site every day. And if your site is new, then there are more problems. Moreover, the speed of the site is a big issue for SEO. However, if you want, you can reduce the size of your site a lot by doing a little work. This will increase the speed of your site.

Copy the code and add it at the very end of your site’s .htaccess. Now see if the speed of your site is better than before. However, before adding the code, check the speed and size of your site once and check again after adding the code, then you will understand. You can go to this site to check the speed.




# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png
AddType text/css .css
# Or, compress certain file types by extension:
SetOutputFilter DEFLATE

Leave a Reply

Your email address will not be published. Required fields are marked *