WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] JS and CSS load on every page (3 posts)

  1. enderandrew
    Member
    Posted 2 years ago #

    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/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

  3. enderandrew
    Member
    Posted 2 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.