how to add defer to script tag
Opened this issue · 1 comments
hasakilol commented
It seems impossible to add defer to script tag.
I have a <script src="xxx" />
. Now I want to add defer
to it.
I tried many ways and couldn't create <script defer src="xxx" />
.
yogeshkudikala commented
Use .attr
to add defer="true"
to your script tab
$('script').attr('defer', true);