XF 1.5 How can I load js asyncronous?

rhodes

Active member
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?
 
Back
Top Bottom