Skip to content

Commit

Permalink
Load comments.js on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
kemchenj committed Aug 8, 2023
1 parent 408c1fa commit 472000f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layout/_scripts/index.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{%- include 'vendors.njk' -%}

{{- next_js('comments.js') }}
{%- if theme.injects.comment.length > 0 %}
{{- next_js('comments.js') }}
{%- endif %}

{{- next_js('utils.js') }}
{%- if theme.motion.enable %}
Expand Down

0 comments on commit 472000f

Please sign in to comment.