You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/1.usage/2.guides/2.sorting.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,15 @@ title: Tag Sorting
3
3
description: How tags are sorted and how to configure them.
4
4
---
5
5
6
-
Once tags are [deduped](/usage/guides/handling-duplicates), they will be sorted. Sorting the tags is important
7
-
to ensure critical tags are rendered first, as well as allowing you to have tags in a specific order that you need them in.
6
+
## Introduction
8
7
9
-
For example, if you need to preload an asset, you'll need this to come before the asset itself. Which is a bit of a challenge
10
-
when the tags are nested.
8
+
Sorting the tags is important to ensure critical tags are rendered first, as well as allowing you to have tags in a specific order that you need them in.
11
9
12
-
## Sorting Logic
10
+
## Tag Sorting Logic
11
+
12
+
Sorting is first done using the [Capo.js](https://rviscomi.github.io/capo.js/) weights, making sure tags are rendered in
13
+
a specific way to avoid [Critical Request Chains](https://web.dev/critical-request-chains/) issues as well
0 commit comments