Skip to content

Commit

Permalink
Move tab script to bottom of loaded docs pages to improve browser com…
Browse files Browse the repository at this point in the history
…patibility
  • Loading branch information
nathan-contino committed Dec 17, 2024
1 parent 384ee2d commit c36a079
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion jekyll-assets/_includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<script type="text/javascript" src="{{ site.baseurl }}/scripts/theme.js?ver={{ site.time | date: '%s' }}"></script>
<script type="text/javascript" src="{{ site.baseurl }}/scripts/tocbot.js?ver={{ site.time | date: '%s' }}"></script>
<script type="text/javascript" src="{{ site.baseurl }}/scripts/toc.js?ver={{ site.time | date: '%s' }}"></script>
<script async type="text/javascript" src="{{ site.baseurl }}/scripts/asciidoctor-tabs.js?ver={{ site.time | date: '%s' }}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-V8TFXM3BKJ"></script>
<script>
window.dataLayer = window.dataLayer || [];
Expand Down
9 changes: 6 additions & 3 deletions jekyll-assets/_layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,13 @@ <h5>On this page</h5>

{% include legal.html %}
{% include footer.html %}
{% include search.html %}

<script async src="{{ site.baseurl }}/scripts/clipboard.min.js?ver={{ site.time | date: '%s' }}"></script>
<script async src="{{ site.baseurl }}/scripts/copy-to-clipboard.js?ver={{ site.time | date: '%s' }}"></script>
<!-- scripts that manipulate the page, placed at the bottom so they run after the page content has already loaded !-->
<script async type="text/javascript" src="{{ site.baseurl }}/scripts/asciidoctor-tabs.js?ver={{ site.time | date: '%s' }}"></script>
<script async type="text/javascript" src="{{ site.baseurl }}/scripts/clipboard.min.js?ver={{ site.time | date: '%s' }}"></script>
<script async type="text/javascript" src="{{ site.baseurl }}/scripts/copy-to-clipboard.js?ver={{ site.time | date: '%s' }}"></script>

{% include search.html %}
</div>
</div>
</body>
Expand Down

0 comments on commit c36a079

Please sign in to comment.