Javascript asset properties

Permalink 1 user found helpful
Hello! I am working on a system in which I need to load the Google Maps Javascript API.
I want to load it as an asset from an external URL, but the Google documentation on this requires adding the "async" property to the script tag and there is also a "defer" property. I didn't find anything in the assets implementation that allows me to do this. Of course I could hard code something like this
<script async defer src="https://maps.googleapis.com/maps/api/js?key=API_KEY&callback=initMap"></script>

wherever I need it, but adding the properties, and maybe URL parameters to the javascript assets would be useful.
Thank you :)

jgrAlex