View Single Post
  #2 (permalink)  
Old October 4th, 2016, 10:38 PM
brsastre brsastre is offline
Registered User
Points: 26, Level: 1
Points: 26, Level: 1 Points: 26, Level: 1 Points: 26, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2016
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Deferred vs Async

Just reading the Deferred and Async attributes for the script tag..

What situations would be ideal for using the async attribute ?
I mean, I can't come up a situation where I would want the script to run before the html has been parsed.. Specially if there is code that make changes to the DOM, which is pretty common.

I would always go with defer I think..

Thank you !
Reply With Quote