What would be the loading order of these two JavaScripts?
<script src="a.js">
<script src="b.js" defer async>
What happens to b.js that has both defer and async?
What would be the loading order of these two JavaScripts?
<script src="a.js">
<script src="b.js" defer async>
What happens to b.js that has both defer and async?
As specified here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
Async is a Boolean attribute indicating that the browser should, if possible, load the script asynchronously.
While Defer is a Boolean attribute that indicates to a browser that the script is meant to be executed after the document has been parsed, but before firing DOMContentLoaded.
So in your case, b.js would load after a.js