Fonts should be preloaded
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3553270. -->
Reported by: [catch](https://www.drupal.org/user/35733)
Related to !102
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>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.</p>
<p>Once <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/3366561" title="Status: Closed (fixed)">#3366561: Support preloading of fonts in the libraries API</a></span> is done this should be possible via the libraries definition.</p>
<p>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</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue