WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Contact Form 7] Jquery js files on every page = unneceassary load on server

[Plugin: Contact Form 7] Jquery js files on every page = unneceassary load on server

  • Hello!

    Your plugin is great, i spent hours customizing it, making forms and such.

    However, after looking at the headers, it seems it loads Jquery.js, jquery.form.js, and even contact-form-7.js on every page.

    For a big site that is 65 kbish of extra load for no reason except for 2 pages on my site where users will rarely go.

    I know this is a minor thing but is there a way i can custom code those .js files to appear on only my 2 wordpress pages?

    Unless this is default in wordpress…………. then i totally messed up here.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @rxsc currently there is no way but I have a plan to make it. In a few months maybe.

    Few months to move a bunch of code? i guess i can wait….

    thats the problem with alot of plugins, i just dont know why. i mean almost 10 plugins.

    Temporary Solution:

    For Example:
    so i removed the hook. that insert js and css files to wp head.

    its like add_action(‘wp_head’, ‘quoteScripts’);
    from the plugin and inserted the code like:

    <script src=”http://wrestlingfans.co.cc/wp-content/plugins/comment-form-quicktags/quicktags.js” type=”text/javascript”></script><link rel=”stylesheet” href=”http://wrestlingfans.co.cc/wp-content/plugins/comment-form-quicktags/style.css” type=”text/css” media=”screen” />

    to the page thats needs that plugin like your contact form.

    Is there any update on this? It’s working fine on my site, but I’d like to clean up the header a bit and loading jquery on every page is a waste.

    Yes. You can use WPCF7_LOAD_JS constant for it.

    Contact Form 7 1.10

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Contact Form 7] Jquery js files on every page = unneceassary load on server’ is closed to new replies.