Skip to content

Commit

Permalink
preload before css
Browse files Browse the repository at this point in the history
  • Loading branch information
efiand committed Jun 25, 2023
1 parent 588753f commit 693c96a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/theme.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
{{ project }}{{ title ? ' > ' ~ title }}
</title>
<meta name="description" content="{{ description|punctify }}">
<link rel="stylesheet" href="{{ rootPath }}styles/main.css{{ version }}">

{% for font in ['opensans-normal-400', 'opensans-normal-700'] %}
<link rel="preload" href="{{ rootPath }}fonts/{{ font }}.woff2" as="font" crossorigin="anonymous">
{% endfor %}
<link rel="stylesheet" href="{{ rootPath }}styles/main.css{{ version }}">

{# https://realfavicongenerator.net/ #}
<link rel="apple-touch-icon" sizes="180x180" href="{{ rootPath }}apple-touch-icon.png">
Expand Down

0 comments on commit 693c96a

Please sign in to comment.