Skip to content

Commit

Permalink
Update how embed.js is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Jan 29, 2025
1 parent 5f0de8e commit 082352c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion static/js/embed.js → assets/js/embed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// https://unpkg.com/@inkeep/[email protected]/dist/embed.js
var BP = Object.defineProperty;
var IP = (e, t, r) => t in e ? BP(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
var md = (e, t, r) => (IP(e, typeof t != "symbol" ? t + "" : t, r), r);
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
{{ end }}

<!-- INKEEP start -->
<script type="text/javascript" src='{{ "js/embed.js" | relURL }}' crossorigin="anonymous" defer></script>
{{ $jsInkeep := resources.Get "js/embed.js" }}
{{ $jsInkeep := $jsInkeep | minify }}
<script type="text/javascript" src="{{ $jsInkeep.RelPermalink }}" crossorigin="anonymous" async></script>
<!-- INKEEP end -->

<!-- START script for lazy loading -->
Expand Down

0 comments on commit 082352c

Please sign in to comment.