• catmaniax

    (@catmaniax)


    Hello.

    After trying to speed up my site I noticed that the plugin’s JS & CSS files are loaded everywhere and not just on the page the contact form appears on.

    Can you please fix that and make the plugin load only where it is needed?

    Please let me know.
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WebCodin

    (@webcodin)

    You can use option “Footer Scripts” in the plugin settings as described in the plugin documentation: https://wpdemo.webcodin.com/wordpress-plugin-wcp-contact-form/documentation/settings/form-tab/

    Thread Starter catmaniax

    (@catmaniax)

    This option was already enabled but the files are still loaded.

    Here are those files:

    /wp-content/plugins/wcp-contact-form/agp-core/assets/repeater/js/main.js
    /wp-content/plugins/wcp-contact-form/agp-core/assets/repeater/css/style.css
    /wp-content/plugins/wcp-contact-form/assets/css/admin-toolbar.css
    /wp-content/plugins/wcp-contact-form/assets/css/style.css

    Plugin Author WebCodin

    (@webcodin)

    ./wp-content/plugins/wcp-contact-form/agp-core/assets/repeater/js/main.js
    ./wp-content/plugins/wcp-contact-form/agp-core/assets/repeater/css/style.css

    These files are connected inside third-party library that use in our plugin and can’t be disabled.

    ./wp-content/plugins/wcp-contact-form/assets/css/admin-toolbar.css

    This file is enabled only when admin toolbar is active. This file is required for correct displaying of “Contact Form” menu in the toolbar, so this file can’t be disabled too.

    ./wp-content/plugins/wcp-contact-form/assets/css/style.css

    This file also can’t be disabled due to current plugin realization.

    It is possible, we’ll change existed logic in future releases, however, as we noted in previously topic from your side – for now we’re not planned any global updates for this plugin.

    Thread Starter catmaniax

    (@catmaniax)

    Thanks for the reply.

    It’s a pity an update isn’t coming soon ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Load plugin’s files on contact page ONLY!’ is closed to new replies.