Consider async/defer loading of klaro-no-css.js

Created on 13 December 2024, 8 days ago

Problem/Motivation

Currently, the klaro-no-css.js is defined in the library as following:

  js:
    /libraries/klaro-js/dist/klaro-no-css.js:
      minified: true
      preprocess: false

This triggers a warning on Google Pagespeed:

Eliminate render-blocking resources Potential savings of 300 ms
Resources are blocking the first paint of your page. Consider delivering critical JS/CSS inline and deferring all non-critical JS/styles. 

…dist/klaro-no-css.js?sofled 69.4 KiB 300 ms

Can we consider adding async or defer to the library?

Steps to reproduce

Tested on Drupal CMS rc1 with Google Pagespeed.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia poker10

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024