mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-21 06:21:17 -04:00
preload CSS using HTTP Link header
This commit is contained in:
10
netlify.toml
10
netlify.toml
@@ -18,6 +18,16 @@
|
|||||||
# The most important headers and redirects are specified in the _headers and
|
# The most important headers and redirects are specified in the _headers and
|
||||||
# _redirects files generated by Hugo. These are additional custom rules.
|
# _redirects files generated by Hugo. These are additional custom rules.
|
||||||
|
|
||||||
|
# Preload style.css on main site:
|
||||||
|
[[headers]]
|
||||||
|
for = "/"
|
||||||
|
[headers.values]
|
||||||
|
Link = "</style.css>; rel=preload; as=style"
|
||||||
|
[[headers]]
|
||||||
|
for = "/notes/*"
|
||||||
|
[headers.values]
|
||||||
|
Link = "</style.css>; rel=preload; as=style"
|
||||||
|
|
||||||
# Redirect default Netlify subdomain to primary domain:
|
# Redirect default Netlify subdomain to primary domain:
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "https://jakejarvis.netlify.com/*"
|
from = "https://jakejarvis.netlify.com/*"
|
||||||
|
Reference in New Issue
Block a user