Add preconnect to speed up loading resources

Created on 18 August 2023, about 1 year 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 about 1 year 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.71.5 2024