• Resolved fmh999

    (@fmh999)


    Hello,

    Thanks for making this plugin, it is very useful.

    In the spirit of optimization, what the plugin handler name to dequeue the recaptcha js file?

    wpcf7-recaptcha-controls.js

    The following does not do the job?

    wp_dequeue_script(‘wpcf7-recaptcha’);

    Thanks for your reply much appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author IQComputing

    (@iqcomputing)

    Hello,

    The wpcf7-recaptcha-controls.js is purposely small. Coming in at 63 lines of code, 2 KB unminified and ~1000 bytes minified ( by optimization plugin ). It’s unlikely you will see any performance improvements removing such a tiny script from being requested.

    That being said, the script is enqueued using wp_enqueue_scripts at priority 50 and is a required script with google-recaptcha handle. You would need to conditional dequeue google-recaptcha to also dequeue wpcf7-recaptcha-controls.js.

Viewing 1 replies (of 1 total)

The topic ‘Dequeue plugin recaptcha js’ is closed to new replies.