1
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:
2019-11-19 16:37:11 -05:00
parent d6ad47c57b
commit e79baa0175

View File

@@ -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/*"