Speed Up Contact Form 7 Plugin For WordPress



Note: Google said site speed is a factor. Contact Form 7 plugin for WordPress is quite bulky in terms of external scripts it’s loads.

You can speed up how fast Contact Form 7 loads (by loads) by ensuring the associated javascript files load ONLY on the contact form itself.

Quickly optimise your contact form 7 wordpress plugin by just adding the following code to the end of your functions.php – you can take 70kb off your load time.

NOTE: Be sure to wrap the following in PHP tags in the example illustrated below:

add_action( 'wp_print_scripts', 'my_deregister_javascript', 100 );function my_deregister_javascript() {if ( !is_page('Contact') ) {wp_deregister_script( 'contact-form-7' );}}add_action( 'wp_print_styles', 'my_deregister_styles', 100 );function my_deregister_styles() {if ( !is_page('Contact') ) {wp_deregister_style( 'contact-form-7' );}}

RELATED ARTICLES

  1. The Best WordPress SEO Plugin
  2. Advice – Nofollow Blog Comments
  3. Do WordPress Self Pings Waste Pagerank?
  4. Host WordPress blog in a subdomain or directory?
  5. How To Exclude A Category or Post From RSS Feed in WordPress
  6. List Recent Posts From Single Category on Posts Within Same Category
  7. Add Text To Home Page Only on WordPress Blog
  8. WordPress Contact Form 7 Redirect To Thank You Page
  9. Speed Up Contact Form 7 Plugin For WordPress
  10. Dynamic PHP Copyright Notice in WordPress
  11. How To Import Large WordPress XML File Above Default Limit Size

If you enjoyed this post, please share :)




Learn how you can get more sales from your website

Subscribe for free and let us share with you:

  • how to submit your site to Google, Yahoo & Bing
  • how to optimise your site to get more traffic from Google
  • how to target the most valuable keywords for your business
  • how to make your site rank better in free Google listings
  • how to rank high & avoid Google penalties in 2013

Trust Hobo with your SEO plan

Find out more