[TWIG][BASE] Using preload for main stylesheets. This ensures they are available earlier and are less likely to block the page's render, improving performance.

This commit is contained in:
Eliseu Amaro 2021-09-15 00:20:41 +01:00
parent 0f1bce67a1
commit 2cbdd43660

View File

@ -12,7 +12,10 @@
</title>
{% block stylesheets %}
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/reset.css') }}">
<link rel="preload" href="{{ asset('assets/css/reset.css') }}" as="style" type="text/css">
<link rel="stylesheet" href="{{ asset('assets/css/reset.css') }}">
<link rel="preload" href="{{ asset('assets/css/base.css') }}" as="style" type="text/css">
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}">
{% for stylesheet in show_stylesheets() %}