• Resolved paamayim

    (@paamayim)


    I notice I have the

    <script src="https://www.google.com/recaptcha/api.js?hl=it"></script>

    in the homepage even if there is no need for it in there, no forms whatsoever.

    COuld you automatically do it register only when really needed or make a filter available to let user overide via theme or plugin function.

    That’s because it slows down pagespeed especially on mobile devices.

    (that’s what is saying google pagespeed here, but in italian, sorry)

    https://developers.google.com/speed/pagespeed/insights/

    Thank you

    • This topic was modified 8 years, 5 months ago by paamayim.
    • This topic was modified 8 years, 5 months ago by paamayim.
    • This topic was modified 8 years, 5 months ago by paamayim.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi!

    To exclude script api.js from a specific page, please use the following code:

    if ( your_condition_for_page ) {
        remove_action( 'admin_footer', 'gglcptch_admin_footer' );
    }
    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Since there is no reply from you, we consider this topic as resolved. We hope you’ve found the solution. If you have any questions, please feel free to contact us via our Help Center – https://support.bestwebsoft.com/.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘include google api.js script only when needed’ is closed to new replies.