Title: Recaptcha loading multiple times
Last modified: September 12, 2018

---

# Recaptcha loading multiple times

 *  [hiad99](https://wordpress.org/support/users/hiad99/)
 * (@hiad99)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/recaptcha-loading-multiple-times/)
 * Hello im cheking GTMetrix and i found that my website is loading recaptcha 4 
   times. Im trying to make it async but i was not able, can you please help me?
 * 745.1KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript
   to reduce blocking of page rendering.
 * [https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js](https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js)(
   186.3KiB)
    [https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js](https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js)(
   186.3KiB) [https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js](https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js)(
   186.3KiB) [https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js](https://www.gstatic.com/recaptcha/api2/v1536180392857/recaptcha__en.js)(
   186.3KiB)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Frecaptcha-loading-multiple-times%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/recaptcha-loading-multiple-times/#post-10679635)
 * recaptcha__en.js is not referenced in your HTML, but loaded by [https://www.google.com/recaptcha/api.js?onload=recaptchaCallback&render=explicit&ver=2.0](https://www.google.com/recaptcha/api.js?onload=recaptchaCallback&render=explicit&ver=2.0),
   so you _could_ try asyncing (or deferring) that?
 * I did [a quick test on webpagetest.org](https://www.webpagetest.org/result/180912_XT_fa24648433e2142333fd51ea58a7f90e/)
   and according to that test recaptcha__en.js is only loaded 1 time, but on the
   other hand in your HTML I do see 4 identical lines like this;
 *     ```
       var wpcf7 = {"apiSettings":{"root":"https:\/\/imlr.net\/wp-json\/","namespace":"contact-form-7\/v1"},"recaptcha":{"messages":{"empty":"Please verify that you are not a robot."}}};
       ```
   
 * so (as a second assignment) try finding out why this is happening, setting that
   same variable (array) 4 times is … useless 🙂
 * hope this helps,
    frank
 *  Thread Starter [hiad99](https://wordpress.org/support/users/hiad99/)
 * (@hiad99)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/recaptcha-loading-multiple-times/#post-10683047)
 * Hello FRank thank you for your answer. I dont know what it’s loading 4 times.
   Code is generated by Contact form 4. I do have 4 contact forms in the page hidden
   as a pop up, Do you think it should be the reason?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/recaptcha-loading-multiple-times/#post-10683203)
 * could be. maybe ask the contactform7 devs if this is the case and how this can
   be prevented?

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

The topic ‘Recaptcha loading multiple times’ is closed to new replies.

 * ![](https://ps.w.org/async-javascript/assets/icon-128x128.png?rev=1839260)
 * [Async JavaScript](https://wordpress.org/plugins/async-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/async-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/async-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/async-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/async-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/async-javascript/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/recaptcha-loading-multiple-times/#post-10683203)
 * Status: not resolved