From a49acb6fc0c8aa2af42a63e1870f64a244633341 Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Thu, 3 Aug 2023 22:19:38 +0800 Subject: perf: reduce render-blocking scripts --- _includes/extensions/code-highlight.html | 6 +++--- _includes/extensions/comments/gitment.html | 2 +- _includes/extensions/google-translate.html | 2 +- _includes/extensions/mathjax.html | 2 +- _includes/extensions/photo-swipe.html | 6 ++++-- _includes/extensions/trianglify.html | 2 +- 6 files changed, 11 insertions(+), 9 deletions(-) (limited to '_includes/extensions') 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 @@ - + + src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js" + async> {%- assign name = 'code_badge.enabled' -%} {%- include functions.html func='get_value' default='true' -%} diff --git a/_includes/extensions/comments/gitment.html b/_includes/extensions/comments/gitment.html index 8d90988..b3a8beb 100644 --- a/_includes/extensions/comments/gitment.html +++ b/_includes/extensions/comments/gitment.html @@ -1,6 +1,6 @@
- + - + diff --git a/_includes/extensions/mathjax.html b/_includes/extensions/mathjax.html index 9ddd1ff..7d271e3 100644 --- a/_includes/extensions/mathjax.html +++ b/_includes/extensions/mathjax.html @@ -7,4 +7,4 @@ }); +src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML" type="text/javascript" async> diff --git a/_includes/extensions/photo-swipe.html b/_includes/extensions/photo-swipe.html index 9a5a51c..99ea4f7 100644 --- a/_includes/extensions/photo-swipe.html +++ b/_includes/extensions/photo-swipe.html @@ -1,5 +1,7 @@ - - + + +