collab / module-recaptcha-page-speed-improvement
Simple Magento 2 mixin to improve page speed by loading Google's reCaptcha only after first user interaction.
Installs: 300
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:magento2-module
Requires
- php: ^8.1||^8.2||^8.3
- magento/framework: *
- magento/module-re-captcha-frontend-ui: 1.1.*
README
The Collab_RecaptchaPageSpeedImprovement is a simple Magento 2 module which improves PageSpeed Insights score by lazy loading reCaptcha script only after user interaction with the website. Loader is triggered after one of the following events:
- 'touchstart',
- 'mouseover',
- 'wheel',
- 'scroll',
- 'keydown'
Basic usage
Mixin works automatically on every page where reCaptcha is used just right after installation.
Installation details
composer req collab/module-recaptcha-page-speed-improvement bin/magento setup:upgrade