
Deflating WordPress page is nothing but reducing and compress page size so that it can be render and download into browser at faster rate. The concept behind compressing is same as zipping and unzip the files on computer.
Browser requests a page which to which server will send Gzip file which will be of smaller size. Once the Gzip file is received on the browser, it will be unzipped and it will display complete page with same quality.
There are different methods to achieve the Gzip compression like using caching plugins, adding .htaccess rules, HTTP compression. But the best I suggest would be adding DEFLATE rules directly into .htaccess files on top or after any other rules.
So here are the .htaccess rules for Gzip compression rules:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
## compress text, html, javascript, css, xml SmartGeekBlog ## 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 ## compress text, html, javascript, css, xml by SmartGeekBlog ## |
These lines of rules deflate and compress the HTML, JavaScript, CSS, XML, and other web fonts file type to reduce the overall size of page request. Thus rendering a new page in browser will be in reduced size and downloads faster than previous.
Once the new page is displayed in browser try #leveraging browser cache so that most of website static files are stored in browser cache memory. This will be helpful for returning visitors to access your WordPress blog at faster rate as most of static heavy files are already exists in browser cache. Know more about how to leverage browser caching in WordPress.
Note and Conclusion:
Due to WordPress deflation, the individual size of each page will be reduced. And this will facilitate to render your blog page at faster rate into browser and keep your visitors active. Hence it is highly recommended to deflate WordPress using Gzip compression.
If you have any other method for WordPress Speed optimization. Please feel free to provide your inputs in comment box, we would be very happy to listen to your experience. Thank you.