WordPress.org

Support

Support » Plugins and Hacks » Contact Form 7 » [Resolved] [Plugin: Contact Form 7] JS and CSS load on every page

[Resolved] [Plugin: Contact Form 7] JS and CSS load on every page

  • I love this plugin and I want to thank you for developing it. I’ve noticed that this plugin however loads .js and .css files on every single WordPress page, even if there is no poll being used.

    Is it possible to only load them on pages where I’m using the contact form? At the very least, can we consolidate the two javascipts?

    contact-form-7/includes/js/scripts.js
    contact-form-7/includes/js/jquery.form.js

    I’m not a PHP/JS developer, but I came across a post that might be useful that discusses how to only load your javascript on the WordPress page that needs it.

    http://aquoid.com/news/2011/02/suffusion-version-3-7-8/ – Scroll down to “Things that are not issues”

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Contact Form 7] JS and CSS load on every page’ is closed to new replies.
Skip to toolbar