magento / magento/security-package
reCaptcha is added multiple times to head
- Dominant language
- PHP
- Stars
- 75
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Description
The link to recaptchs js is added several times to head, which slightly delays the loading time of the captcha on required pages.
### Preconditions
1. Magento 2.3.2 vanilla install with sample data
2. Google reCaptcha v2 keys created on google
### Steps to reproduce
1.
2.
3.
### Expected result
1. Recaptcha should only be loaded once.
### Actual result

Contributor guide
Research direction
Reproduce the issue on a Magento 2.3.2 vanilla install with sample data and Google reCaptcha v2 keys, then inspect where the reCaptcha JavaScript link is inserted into the page head. Done means the link appears only once on pages requiring reCaptcha and loading is no longer duplicated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, security
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100