Defer tooltips script
This commit is contained in:
parent
33d86b390c
commit
9207bad41e
|
@ -61,7 +61,7 @@
|
|||
</main>
|
||||
{% block footer %}{% include "global/footer.njk" %}{% endblock %}
|
||||
{% if hasTooltips %}
|
||||
<script src="{{'/assets/js/tooltips.js' | url | safe}}"></script>
|
||||
<script src="{{'/assets/js/tooltips.js' | url | safe}}" defer></script>
|
||||
<script>
|
||||
var selector = '[data-tooltip]';
|
||||
var els = document.querySelectorAll(selector);
|
||||
|
|
Loading…
Reference in New Issue