summaryrefslogtreecommitdiff
path: root/_includes/extensions/code-highlight.html
diff options
context:
space:
mode:
authorJeffrey Tse <jeffreytse.mail@gmail.com>2023-08-03 22:19:38 +0800
committerJeffrey Tse <jeffreytse.mail@gmail.com>2023-08-03 22:19:38 +0800
commita49acb6fc0c8aa2af42a63e1870f64a244633341 (patch)
treeb5491a8343e15c097b96800ef31e4f7772b68b13 /_includes/extensions/code-highlight.html
parent997515d10e6d049672b49d24fd69ab302e293dec (diff)
perf: reduce render-blocking scripts
Diffstat (limited to '_includes/extensions/code-highlight.html')
-rw-r--r--_includes/extensions/code-highlight.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/_includes/extensions/code-highlight.html b/_includes/extensions/code-highlight.html
index 22e40cc..b7c6399 100644
--- a/_includes/extensions/code-highlight.html
+++ b/_includes/extensions/code-highlight.html
@@ -1,9 +1,9 @@
-<link rel="stylesheet"
- href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css">
+<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script charset="UTF-8"
- src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"></script>
+ src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"
+ async></script>
{%- assign name = 'code_badge.enabled' -%}
{%- include functions.html func='get_value' default='true' -%}