Hi there!
I'm trying to add JS with requirements, cause requirements adds cache-busting.
But I also need defer attribute in script tag.
public function init() {
Requirements::javascript("themes/mysite/builds/main.js");
}
I've read documentation and source code, and don't found solution how to achieve it.
Is it possible to use requirements, cache-busting and defer attribute simultaneously?