<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nobuoka</author_name>
  <author_url>https://blog.hatena.ne.jp/nobuoka/</author_url>
  <blog_title>ひだまりソケットは壊れない</blog_title>
  <blog_url>https://vividcode.hatenablog.com/</blog_url>
  <categories>
    <anon>HTML</anon>
    <anon>DOM</anon>
    <anon>JavaScript</anon>
  </categories>
  <description>読み込みのタイミングによっては外部 script のdocument.writeは無視される - HAKOBE blog ♨ なるほどなー、と思いながら上記記事を読んでた。 記事を読んでて JS の読み込み周りで気になることがあったので調べた。 DOM 操作で追加された script 要素のスクリプトはどのタイミングで実行されるのか? &lt;!DOCTYPE html&gt; &lt;html&gt; (略) &lt;div id=&quot;js-insertion-point&quot;&gt;&lt;/div&gt; &lt;script&gt; var se = document.createElement(&quot;script&quot;); se.src = &quot;test.j…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fvividcode.hatenablog.com%2Fentry%2Fhtml%2Fscripting-timing&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-27 02:38:02</published>
  <title>外部 script の document.write が何もしない条件などについて</title>
  <type>rich</type>
  <url>https://vividcode.hatenablog.com/entry/html/scripting-timing</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
