Use tailwind_preload_css

> The tag generates a preload directive for your stylesheet, which improves
> loading performance in production. Place it above the {% tailwind_css %} tag:

See e.g. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload

For a brief moment I thought that this was malfunctioning, because it is missing
the ?v=... part, but that part is DEBUG-only, so we don't care about it for real
use-cases
This commit is contained in:
Klaas van Schelven
2024-05-13 14:33:25 +02:00
parent 1a264675c2
commit f72b2522b8

View File

@@ -5,6 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% tailwind_preload_css %}
{% tailwind_css %}
</head>