magento / magento/security-package

reCaptcha is added multiple times to head

Open
#21 16 comments 8 reactions 0 assignees View on GitHub
Component: Google reCAPTCHA Progress: ready for grooming
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

![image](https://user-images.githubusercontent.com/1021508/64646170-2182d900-d3dc-11e9-8866-243678494549.png)

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.