In one of my templates I use <xen:require js="/path/to/script.js" /> to add a custom javascript to my page. Now I would like to add "async" to the script tag.
The result should bes th. like this
<script src = "/path/to/script.js" async> ensuring that the script is loaded after page load.
Any ideas how I could do this?
The result should bes th. like this
<script src = "/path/to/script.js" async> ensuring that the script is loaded after page load.
Any ideas how I could do this?