added preloads

This commit is contained in:
2024-10-19 20:42:42 +02:00
parent 0ec663ae68
commit 35f2ea7536

View File

@@ -8,6 +8,14 @@
{%- if webmanifest %} {%- if webmanifest %}
<link rel="manifest" href="/.static/manifest.json"> <link rel="manifest" href="/.static/manifest.json">
{%- endif %} {%- endif %}
<link rel="preload" href="{{ stylesheet }}" as="style">
{%- if theme %}
<link rel="preload" href="{{ theme }}" as="style">
{%- endif %}
<link rel="preload" href="{{ root }}.static/pswp/photoswipe.css" as="style">
<link rel="preload" href="{{ root }}.static/pswp/default-skin/default-skin.css" as="style">
<link rel="preload" href="{{ root }}.static/pswp/photoswipe.min.js" as="script">
<link rel="preload" href="{{ root }}.static/pswp/photoswipe-ui-default.min.js" as="script">
<link rel="icon" type="image/x-icon" href="{{ favicon }}"> <link rel="icon" type="image/x-icon" href="{{ favicon }}">
<link rel="stylesheet" href="{{ stylesheet }}"> <link rel="stylesheet" href="{{ stylesheet }}">
{%- if theme %} {%- if theme %}