<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hakobe932</author_name>
  <author_url>https://blog.hatena.ne.jp/hakobe932/</author_url>
  <blog_title>はこべにっき ♨</blog_title>
  <blog_url>https://hakobe932.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>外部サイトの事情やら歴史的経緯やらで、document.writeを直接行なうような、JavaScriptを&lt;script src &gt;を使って動的に読み込まなくてはいけないことがあります。この時、誤ってscript要素をappendChildしたりして非同期に読み込みすると、スクリプト内のdocument.writeが無視されることがあります。例えば以下の例のように、script要素をつくってappendChildすると、外部scriptは非同期に実行されます。この実行タイミングによっては、document.writeを実行しても何も起こらないように見えます。https://gist.gith…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakobe932.hatenablog.com%2Fentry%2F2013%2F03%2F26%2F215755&quot; title=&quot;読み込みのタイミングによっては外部 script のdocument.writeは無視される - はこべにっき ♨&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-03-26 21:57:55</published>
  <title>読み込みのタイミングによっては外部 script のdocument.writeは無視される</title>
  <type>rich</type>
  <url>https://hakobe932.hatenablog.com/entry/2013/03/26/215755</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
