Feel free to play with Autoptimize’s other performance options, such as “Optimize HTML code?”.You can optionally also check “Also aggregate inline CSS?” to also concatenate CSS that’s been printed directly to your page rather than being called from a separate file. Check “Optimize CSS Code?” and “Aggregate CSS-files?” to minify and concatenate CSS stylesheets. You can optionally also check “Also aggregate inline JS?” to also concatenate JavaScript that’s been printed directly to your page rather than being called from a separate file. On that page, you’ll check “Optimize JavaScript Code?” and “Aggregate JS-files?” to minify and concatenate JavaScript files.For that, you’ll go to “Settings > Autoptimize” You’ll now have the plugin on, but for it to do anything you must tell it what you want it to do.Go to “Plugins > Add New” and search for “Autoptimize”.Watch the video to find out how:Īnd here’s a text guide to the same information: How to Use Autoptimize to Concatenate and Minify CSS and JavaScript in WordPress The site speed benefit of this is that your files are much smaller, and hence faster for the server to transfer to your browser.Īutoptimize will do both of these things for you, once you set it up properly. Minification is “rewriting” your code so that it has less white space, long function names, and other letters that are unnecessary to the computer that will be actually running that code.The site speed benefit of this is that the browser only has to request one file from the server, rather than making potentially dozens of separate requests.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |