Y
Hacker News
new
|
ask
|
show
|
jobs
by
CrystalGamma
3223 days ago
You could still insert <script> elements, you just wouldn't do it with document.write().
1 comments
pygy_
3223 days ago
I may be wrong, but I think that document.write() will load the script synchronously while inserting a `script` element will not.
link
acdha
3223 days ago
You can set async=false on a dynamic script element to avoid the default asynchronous behaviour.
link
pygy_
3223 days ago
I just looked at the support matrix: IE10+. So it is reasonably supported nowadays, nice :-)
link
acdha
3222 days ago
Working on the web is refreshing like that these days — so many things which used to be painful are now just standards + “Microsoft doesn't support that old version of IE and neither do we”.
link