Custom Contact Forms
[resolved] Assets (JS/CSS) get loaded even if custom contact form is not placed on site (4 posts)

  1. adityabajaj
    Posted 3 years ago #


    I really appreciate the great plugin making our job easier. However it has some performance issues. The JS and CSS are loaded even when the custom contact form is not included on my site page, this increases the load time providing a bad user experience. :(

    How can I customize to include the related assets only when custom contact form is present on the page?

    While I was analyzing the load time, I found this. I tried minifying the JS and CSS using the online tools which I myself created, but how to programmatically ignore the assets which are not required on the page?!



  2. adityabajaj
    Posted 3 years ago #

    I don't want to deactivate as I am using them for my site but at the same time dont want it to load its assets when the form is not actually included on the page.

    #Taylor Lovett Thanks for this nice helpful plugin, could you help me resolve this issue too?

  3. adityabajaj
    Posted 2 years ago #

    Any suggestions anyone please?
    There are so many JS and css getting loaded so reducing unnecessary assets from the page is very important to optimize page load time.
    Please help!

  4. adityabajaj
    Posted 2 years ago #

    Whoaa! I found an answer. You need to set Yes on settings pages of CCF.

    Restrict Frontend JS and CSS to Form Pages Only: YES

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Contact Forms
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic