Fonts should be preloaded

Created on 19 October 2025, 9 days ago

Problem/Motivation

The fonts specified in fonts.css aren't preloaded, this means that they can only be loaded once the CSS itself has been downloaded and parsed, which leads to rendering delays.

Once Support prefetch/preload/dns-prefetch in the libraries API Active is done this should be possible via the libraries definition.

Until then it probably needs a hook_page_attachments_alter() to add the link preload to html head, or Olivero does it with a twig template that is included in page.html.twig

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

1.0

Component

CSS

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Merge Requests

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