Skip to content

Commit

Permalink
Revert "Update how embed.js is loaded (#3946)"
Browse files Browse the repository at this point in the history
This reverts commit 7e23e4d.
  • Loading branch information
npentrel authored Jan 29, 2025
1 parent 7e23e4d commit 272940f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
{{ end }}

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

<!-- START script for lazy loading -->
Expand Down
1 change: 1 addition & 0 deletions assets/js/embed.js → static/js/embed.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 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

0 comments on commit 272940f

Please sign in to comment.