CMS Joomla Mastering Development

How do I add async attribute for scripts?

I would like to add async to script tags coming from here <jdoc:include type="head" />. I have done some research and I found a few solutions, however those are for custom scripts. I managed to find a workaround by editing the core file HeadRenderer.php located in [root]/libraries\src\Document\Renderer\Html and directly adding the async attribute, but It […]