[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:
parent
0f1bce67a1
commit
2cbdd43660
@ -12,7 +12,10 @@
|
|||||||
</title>
|
</title>
|
||||||
|
|
||||||
{% block stylesheets %}
|
{% 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') }}">
|
<link rel='stylesheet' type='text/css' href="{{ asset('assets/css/base.css') }}">
|
||||||
|
|
||||||
{% for stylesheet in show_stylesheets() %}
|
{% for stylesheet in show_stylesheets() %}
|
||||||
|
Loading…
Reference in New Issue
Block a user