Add preconnect to speed up loading resources

Created on 18 August 2023, 11 months ago

Problem/Motivation

Currently the module does not provide a preconnect link.

Proposed resolution

Implement a preconnect.

✨ Feature request
Status

Needs work

Version

2.1

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium yoerioptr

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

Comments & Activities

  • Issue created by @yoerioptr
  • Status changed to Needs work 11 months ago
  • πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels

    Thanks for the patch! Since it's possible to choose your own script source, you should also

    • make href dynamic, take the scheme + host of the script instead of hardcoding to plausible.io
    • only add this if the host is different from the current domain (taken from \Drupal::request())
Production build 0.69.0 2024