magento / magento/security-package

reCapcha loading reflects to page speed

Open
#333 1 comment 2 reactions 1 assignee Claimed by @Bashev View on GitHub
Progress: PR created
Dominant language
PHP
Stars
75
Forks
73
PR merge metrics
No merged PRs in 30d

Description

### Description (*)
If reCaptcha is enabled, this few additional JS files are loaded automatically with the page loading. This reflects to the page speed of the site and of course, increase time to complete loading.

These files are external for the system and this also reflects to pagesspeed. They cannot be merged or bundled. This are 26 additional requests which comes with recaptcha loading.

![image](https://github.com/magento/security-package/assets/1854269/dccf5c39-f97e-48e4-a237-312122e5b9e3)

### Expected behavior (*)
Load recaptcha related files (and entire library) to be loaded only if is required and have forms to which need to be applied.

### Benefits
Reduce loading time, increase page speed of the site (Google Page Speed).

### Additional information
[](https://github.com/magento/magento2/issues/38303)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.