Lazy load or defer js until page is built?

Created on 3 January 2023, almost 2 years ago
Updated 10 February 2023, almost 2 years ago

Problem/Motivation

I add Gtranslate block to the top of all my pages (so maybe lazy load would not be the right solution)
Depending on the Google, initial page load can be slow.
Using Lightspeed it gives the suggestion to defer js on my pages.
Is there a way to lazy load or defer the execution of the gtranslate block until the page is built?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024