4 ms·
Not that simple, won't work on most browsers. Also if script has document.write inside - will fail. http://stackoverflow.com/questions/1834077/browser-support-
by rarestblog 16y ago
Not that simple, won't work on most browsers. Also if script has document.write inside - will fail.
http://stackoverflow.com/questions/1834077/browser-support-for-script-asynctrue http://stackoverflow.com/questions/1834077/browser-support-f...
- stephencelis 16y agoMore and more support for it every day: http://webkit.org/blog/1395/running-scripts-in-webkit/ http://webkit.org/blog/1395/running-scripts-in-webkit/ So there's also "defer," which is better-supported. The document.write issue is also an issue for JavaScript element building, but the assumption is that you won't blindly use these methods without testing, first.