Lazy Loading hCaptcha script

Created on 11 September 2023, 10 months ago
Updated 23 November 2023, 7 months ago

Problem/Motivation

Since Google Page Speed might warn a Drupal site using hCaptcha for potential savings on the js scripts. A lazy loading approach can be used to load the scripts only when the forms are actually visible and prevent lighthouse from alerting this.

Proposed resolution

Using Intersection Observer to load the scripts tag when a form is actually visible.

Remaining tasks

  • Test
✨ Feature request
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia alejo-moreno

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024