Skip to content

Conversation

wkillerud
Copy link
Contributor

This leads to unexpected results. An option is to ignore async silently if passing defer: true, since this could start breaking things.

Copy link
Member

@digitalsadhu digitalsadhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tempted to say I'm leaning toward silent ignoring over throwing but I can't say I have a good reason other than that this was designed to follow the web standard attributes for script tags and I don't think it's not allowed to add both. Somehow silent ignoring of async feels more in line with this to me. (But not feeling really strongly about this)

@wkillerud wkillerud merged commit dfb40d6 into master Feb 1, 2024
@wkillerud wkillerud deleted the no-async-and-defer branch February 1, 2024 14:33
github-actions bot pushed a commit that referenced this pull request Feb 1, 2024
## [5.0.2](v5.0.1...v5.0.2) (2024-02-01)

### Bug Fixes

* validate inputs when passing both async and defer ([#226](#226)) ([dfb40d6](dfb40d6))
Copy link

github-actions bot commented Feb 1, 2024

🎉 This PR is included in version 5.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants