@@ -62,7 +62,7 @@ correct prioritization and the content security policy:
62
62
63
63
<head>
64
64
<!-- ... -->
65
- <link rel="stylesheet " href="{{ preload('/app.css', { as: 'style' }) }}">
65
+ <link rel="preload " href="{{ preload('/app.css', { as: 'style' }) }}">
66
66
</head>
67
67
68
68
If you reload the page, the perceived performance will improve because the
@@ -77,7 +77,7 @@ requested the HTML page.
77
77
78
78
<head>
79
79
<!-- ... -->
80
- <link rel="stylesheet " href="{{ preload(asset('build/app.css')) }}">
80
+ <link rel="preload " href="{{ preload(asset('build/app.css')) }}">
81
81
</head>
82
82
83
83
Additionally, according to `the Priority Hints specification `_, you can signal
@@ -87,7 +87,7 @@ the priority of the resource to download using the ``importance`` attribute:
87
87
88
88
<head>
89
89
<!-- ... -->
90
- <link rel="stylesheet " href="{{ preload('/app.css', { as: 'style', importance: 'low' }) }}">
90
+ <link rel="preload " href="{{ preload('/app.css', { as: 'style', importance: 'low' }) }}">
91
91
</head>
92
92
93
93
How does it work?
@@ -111,7 +111,7 @@ issuing an early separate HTTP request, use the ``nopush`` option:
111
111
112
112
<head>
113
113
<!-- ... -->
114
- <link rel="stylesheet " href="{{ preload('/app.css', { as: 'style', nopush: true }) }}">
114
+ <link rel="preload " href="{{ preload('/app.css', { as: 'style', nopush: true }) }}">
115
115
</head>
116
116
117
117
Resource Hints
@@ -145,7 +145,7 @@ any link implementing the `PSR-13`_ standard. For instance, any
145
145
<head>
146
146
<!-- ... -->
147
147
<link rel="alternate" href="{{ link('/index.jsonld', 'alternate') }}">
148
- <link rel="stylesheet " href="{{ preload('/app.css', { as: 'style', nopush: true }) }}">
148
+ <link rel="preload " href="{{ preload('/app.css', { as: 'style', nopush: true }) }}">
149
149
</head>
150
150
151
151
The previous snippet will result in this HTTP header being sent to the client:
0 commit comments