While #Wordpress is an awesome website building platform, it can become slow! Use these 5 easy to implement techniques to give your website a speed boost!
Don’t lose your all important site visitors to a slow website, use these 5 awesome speed enhancing tips to give your website a much needed speed injection.
Insert into functions.php file
/** * Defer parsing of javascript. */ if (!(is_admin() )) { function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; // return "$url' defer "; return "$url' defer onload='"; } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );
/** * Remove Script Versions. */ function _remove_script_version( $src ){ $parts = explode( '?', $src ); return $parts[0]; } add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); }
Insert into .htaccess file
## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType application/javascript "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 2 days" </IfModule> ## EXPIRES CACHING ##
Free tutorials for WordPress, Slider Revolution and Visual Composer. New tutorials added every Wednesday.
Take your WordPress website and skills to the next level!
AFFILIATE DOWNLOADS
If you like what we do and would like to support us, please consider using these affiliate links when purchasing any of the plugins covered in our tutorials. Thank you for your support.
CSSHERO:
ELEMENTOR PRO:
SLIDER REVOLUTION 5 –
VISUAL COMPOSER:
IMPREZA THEME:
SUBSCRIBE