|
However, in most cases it is enough to add a token: AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x -icon to .htcaccess file? you will find it in the main WP installation directory. In Apache2, you can enable gzim compression with the command: sudo a2enmod deflate . Sometimes gzip compression can be enabled from the server's administration panel. If you are not sure whether your hosting company provides such tools? contact them.
And its interface after analyzing the page looks like this: Minification and optimization of CSS, JS and HTML Minifying HTML, JavaScript, and CSS Phone Number List files is all about cleaning them up. During minification, we remove unnecessary comments, characters and spaces. Thanks to such measures, we actually reduce the weight and volume of individual website components. This is what the code looks like before minification: And after minification: Combining JS and CSS files It's also a good idea to combine several smaller CSS and JS files into one large one.

This way, the server will receive one query instead of a dozen or so queries. regarding one large file. In WordPress, you can combine JS and CSS files by installing the JS & CSS Script Optimize plugin . Basically, to properly combine the files, you just need to install and activate the plugin, which will do all the work for you. This is what the number of queries looks like before combining JS and CSS files: This is what the number of queries looks like after combining the files: Modifying URLs Modifying URL addresses in WP and other CMSs allows you to speed up page loading and also influence positioning.
|
|