Remove defer attribute from tooltip scripts

This commit is contained in:
Helen Chong 2024-07-13 21:06:38 +08:00
parent fe3a4e3d36
commit e62d83e242
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@
</main>
{% block footer %}{% include "global/footer.njk" %}{% endblock %}
{% if hasTooltips %}
<script src="{{'/assets/js/tooltips.js' | url | safe}}" defer></script>
<script src="{{'/assets/js/tooltips.js' | url | safe}}"></script>
<script>
var selector = '[data-tooltip]';
var els = document.querySelectorAll(selector);