Skip to content

Commit

Permalink
Simplify gumroad script loading
Browse files Browse the repository at this point in the history
  • Loading branch information
qwtel committed Sep 6, 2024
1 parent f5f2ef2 commit 519171c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _includes/my-head.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<!--
Code used for embedding Gumroad on the Hydejack Site.
Left here for reference, feel free to delete.
-->
<link rel="dns-prefetch" href="https://assets.gumroad.com">
{% unless jekyll.environment == 'development' %}
<script defer data-domain="hydejack.com" src="https://plausible.io/js/plausible.js"></script>
<script>(function () { window.counterscale = { q: [["set", "siteId", "hydejack.com"], ["trackPageview"]] } })()</script>
<script id="counterscale-script" src="https://counterscale-bio.pages.dev/tracker.js" defer></script>
<script defer id="counterscale-script" src="https://counterscale-bio.pages.dev/tracker.js"></script>
{% endunless %}
<script type="module">
<link rel="dns-prefetch" href="https://assets.gumroad.com">
<script defer src="https://gumroad.com/js/gumroad.js"></script>
<script defer src="https://gumroad.com/js/gumroad-embed.js"></script>
{% comment %}
<!-- <script type="module">
const promisify = f => x => new Promise(r => f(x).addEventListener('load', r));
const loadJS = promisify(window.loadJS);
let p1, p2, embedCreated, overlayCreated;
Expand Down Expand Up @@ -49,4 +48,5 @@
document.querySelectorAll('.gumroad-product-embed').forEach(el => io1.observe(el));
document.querySelectorAll('.gumroad-button').forEach(el => io2.observe(el));
});
</script>
</script> -->
{% endcomment %}

0 comments on commit 519171c

Please sign in to comment.