Additional wonderful good time happiness snippets to extend Autoptimize’s functionality. WARNING: This is at least intermediate stuff. If you don’t know what should be done with these simply by looking at them, wait until you’re a little more versed with code.
How to Add the Async Flag to the Script Produced by Autoptimize
To add the async attribute to the footer script produced by Autoptimize, copy and paste this code snippet — in plain text — to your functions.php file, or, add it with a plugin like Code Snippets.
How To Stop W3TC From Printing HTML Comments
W3TC will insert HTML comments to the bottom of your site’s source code. This is a potential security issue and is recommended that you remove them. To do so, copy and paste the following code snippet as plain text to the bottom of your theme’s functions.php file; or, add it using the Code Snippets plugin…
- Page 2 of 2
- 1
- 2