Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] REQUEST: Load JS only when needed!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Bughunter, I don’t think CF7 js is responsible for slow down site. I have used it on several sites without any problem. There might be some problem with your hosting server, consider a check with them!

    CF7 js is indeed a small file and wouldn’t hurt loading on every pages. There are several advantages of this particularly since we can load any cf7 form via Ajax which we most professional developer like…

    Also, you might consider optimizing your public interfaces with techniques like – caching, compression etc…

    Hopes this will clear you.

    Well it may is not a heavy file but it would be great if I could say to your plugin that it shoul only load when needed because it crashes my js-slider on the frontpage.

    Don’t you have any ideas for us to disable the js-loading for pages where it’s not needed?

    @ilovegames can you point me to your site url and additionally like to know what is the “js-slider” plugin you have conflict with CF7 js?

    I agree with the previous requesters.

    There is no need to load additional CSS and JS on every page. It would be appropriate to load them only when needed (when there is a form on the page).

    A site may have hundreds of pages but a contact form only on a single page!

    Hi biswajeet,

    I’m sorry but I’ve solved the problem, so I can’t show you the conflict.

    This post helped me out:
    http://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Contact Form 7] REQUEST: Load JS only when needed!’ is closed to new replies.