Skip to main content
The 2024 Developer Survey results are live! See the results
15 events
when toggle format what by license comment
Mar 31, 2015 at 13:50 comment added Vadorequest Also see this link to know how to deal with fallback for asych: msdn.microsoft.com/fr-fr/library/ie/hh673524%28v=vs.85%29.aspx
Dec 31, 2014 at 16:40 history edited Philip Rieck CC BY-SA 3.0
edited body
Feb 18, 2014 at 16:10 comment added Philip Rieck Please note that the post linked in the question sets async="true". It's not the correct way to do it now, but it was the only widely supported way to do it then. For example IE10p2 supported async="true" but did not support async="async"
Feb 18, 2014 at 16:08 history rollback Philip Rieck
Rollback to Revision 5
Feb 18, 2014 at 16:05 history edited Andrew G. Johnson CC BY-SA 3.0
Incorrectly references async="true" rather than async="async"
Jan 28, 2014 at 17:01 history edited Philip Rieck CC BY-SA 3.0
Bring up to date.
May 25, 2012 at 2:50 history edited Philip Rieck CC BY-SA 3.0
added 231 characters in body
May 25, 2012 at 2:42 history edited Philip Rieck CC BY-SA 3.0
added 231 characters in body
Aug 16, 2011 at 13:50 history edited Yahel CC BY-SA 3.0
added 245 characters in body
Dec 14, 2010 at 16:07 comment added Marcel Korpel @vsync: It even shouldn't be true; either async, async="" or async="async".
Dec 14, 2010 at 16:06 comment added Marcel Korpel @Tobias: you're intermingling HTML boolean attributes and the corresponding DOM element properties: the HTML attribute (present in markup and when explicitly setting attributes using setAttribute, which is not recommended) should just be present or being set to either an empty string or itself (defer="defer", especially important when writing XHTML compliant documents); when setting the element's property on-the-fly using JavaScript, one should use s.async = true.
Oct 28, 2010 at 1:03 comment added Tobi so if i generate the script tag like google does it - what would be correct: var s = document.createElement('script'); s.async='true';s.async=true; (google does it that way) or s.async='async'; ?
May 4, 2010 at 14:36 comment added vsync I'm not sure you even need async="true", you can just write 'async'
Dec 3, 2009 at 14:24 vote accept knorv
Dec 2, 2009 at 16:33 history answered Philip Rieck CC BY-SA 2.5