Remove query strings from static resources. Add to your functions.php function _remove_script_version( $src ){ $parts = explode( ‘?ver’, $src ); return $parts[0]; } add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 ); add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 ); Increase WordPress memory limit Add to wp-config.php /** * Increase WordPress Memory Limit. */ define(‘WP_MEMORY_LIMIT’, ’64M’); Enable caching of static […]
Uncategorised
Minify Html
Found at Forrst. Add to functions.php. A way to minify HTML without adding another plugin. <?php /* Minifies HTML */ /* (source: http://www.intert3chmedia.net/2011/12/minify-html-javascript-css-without.html) */ class WP_HTML_Compression { // Settings protected $compress_css = true; protected $compress_js = false; protected $info_comment = true; protected $remove_comments = true; // Variables protected […]