preload.twig
Preload the non-bold & non-italic fonts for the headings and the body copy.
Available variables:
- olivero_path: Returns the path to the Olivero theme.
 
File
- 
              core/
themes/ olivero/ templates/ includes/ preload.twig  
View source
- {#
 - /**
 -  * @file
 -  * Preload the non-bold & non-italic fonts for the headings and the body copy.
 -  *
 -  * Available variables:
 -  * - olivero_path: Returns the path to the Olivero theme.
 -  */
 - #}
 - 
 - <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-Regular.woff2" as="font" type="font/woff2" crossorigin>
 - <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-SemiBold.woff2" as="font" type="font/woff2" crossorigin>
 - <link rel="preload" href="{{ olivero_path }}/fonts/metropolis/Metropolis-Bold.woff2" as="font" type="font/woff2" crossorigin>
 - <link rel="preload" href="{{ olivero_path }}/fonts/lora/lora-v14-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
 
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.