We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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" />.
<script src="xxx" />
defer
<script defer src="xxx" />
The text was updated successfully, but these errors were encountered:
Use .attr to add defer="true" to your script tab $('script').attr('defer', true);
.attr
defer="true"
$('script').attr('defer', true);
Sorry, something went wrong.
No branches or pull requests
It seems impossible to add defer to script tag.
I have a
<script src="xxx" />
. Now I want to adddefer
to it.I tried many ways and couldn't create
<script defer src="xxx" />
.The text was updated successfully, but these errors were encountered: