WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. adityabajaj
    Member
    Posted 1 year ago #

    Hello,

    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?!

    Thanks

    http://wordpress.org/extend/plugins/custom-contact-forms/

  2. adityabajaj
    Member
    Posted 1 year 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
    Member
    Posted 12 months ago #

    Hello,
    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!
    Aditya

  4. adityabajaj
    Member
    Posted 12 months 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

About this Topic