Lazy Loading hCaptcha script

Created on 11 September 2023, about 1 year ago
Updated 23 November 2023, 12 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.71.5 2024