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