Skip to content

Commit a83e4c1

Browse files
committed
Optimize JS loading priority
1 parent 0b29c03 commit a83e4c1

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

_includes/js-selector.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
JS selector for site.
33
-->
44

5-
<!-- common -->
6-
7-
<script async src="https://cdn.jsdelivr.net/combine/npm/[email protected],npm/bootstrap@4/dist/js/bootstrap.min.js"></script>
8-
9-
{% if jekyll.environment == 'production' %}
10-
<!-- PWA -->
11-
<script defer src="{{ '/app.js' | relative_url }}"></script>
12-
13-
<!-- GA -->
14-
{% if site.google_analytics.id %}
15-
{% include google-analytics.html %}
16-
{% endif %}
17-
18-
{% endif %}
19-
205
<!-- layout specified -->
216

227
{% if page.layout == 'home' or page.layout == 'post' %}
@@ -66,3 +51,18 @@
6651
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
6752
</script>
6853
{% endif %}
54+
55+
<!-- commons -->
56+
57+
<script src="https://cdn.jsdelivr.net/combine/npm/[email protected],npm/bootstrap@4/dist/js/bootstrap.min.js"></script>
58+
59+
{% if jekyll.environment == 'production' %}
60+
<!-- PWA -->
61+
<script defer src="{{ '/app.js' | relative_url }}"></script>
62+
63+
<!-- GA -->
64+
{% if site.google_analytics.id %}
65+
{% include google-analytics.html %}
66+
{% endif %}
67+
68+
{% endif %}

0 commit comments

Comments
 (0)