• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 20.10.21, 13:26
  • Opened by: PeterJ
  • Closed by: Fred
  • Closed on: 26.10.21, 16:33
  • Reason: Closed
  • Comment: Glad to help!

Ticket #22467 - reCaptcha sowing down template

Hello,

I think you know that reCaptcha is extremely slowing down your template.

But Is there any way to disable preloading or loading ALL recaptcha external parts on the pages where is not used form?

Comments

Fred 21 Oct 2021, 11:30

How did you found out that is a captcha module?
I have reviewed the code and there is no any heavy operations inside the module. And all scripts loads in “async” mode.

PeterJ 21 Oct 2021, 14:02

Basic problem you can see in Google PageSpeed (see attachment). And also in Chrome pages Inspector (2nd screenshot). Tested on product page, but same results you can find also in categories and main page. Best way is disable recaptcha on pages where is not form.

Attachments:

Screen Shot 2021-10-21 at 13.... (83.3 KiB)
Screen Shot 2021-10-21 at 13.... (192.8 KiB)
Fred 21 Oct 2021, 14:04

As I wrote you, all captcha scripts loads in “async” mode. That’s all that we can do with that. No more options here

PeterJ 21 Oct 2021, 14:08

OK

Fred 21 Oct 2021, 14:16

captcha js library was developed by google and we are using their recommendations how to include it into a website https://developers.google.com/recaptcha/docs/display

PeterJ 21 Oct 2021, 23:22

OK