Skip to content

Commit

Permalink
perf: preload stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennvo committed Nov 5, 2024
1 parent 93b6b83 commit a8eeffd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/_includes/layouts/default.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
{% include "partials/html-head.njk" %} {% block stylesheets %}
<link rel="preload" href="/assets/css/layouts/default.css" as="style" />
<link rel="stylesheet" href="/assets/css/layouts/default.css" />
{% endblock %}
<body>
Expand Down
1 change: 1 addition & 0 deletions src/_includes/layouts/landing.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
{% include "partials/html-head.njk" %} {% block stylesheets %}
<link rel="preload" href="/assets/css/layouts/landing.css" as="style" />
<link rel="stylesheet" href="/assets/css/layouts/landing.css" />
{% endblock %}
<body>
Expand Down
1 change: 1 addition & 0 deletions src/_includes/partials/html-head.njk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{{ title }}</title>
<meta name="description" content="{{ description }}" />
<link rel="preload" href="/assets/css/global.css" as="style" />
<link rel="stylesheet" href="/assets/css/global.css" />
<link
rel="apple-touch-icon"
Expand Down

0 comments on commit a8eeffd

Please sign in to comment.