<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jdg</author_name>
  <author_url>https://blog.hatena.ne.jp/jdg/</author_url>
  <blog_title>あと味</blog_title>
  <blog_url>https://taiju.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>CSS</anon>
  </categories>
  <description>最近、実案件で実験していたのですが、仕様が固まってきたのでメモしておきます。JavaScriptを特定のページで実行したいというニーズがあるけれど、head要素内に書くとか、body要素内に書くとか、そのページ限定でscript要素を使って読み込むとかいろんな方法があります。ただ、コードが散らばると管理が面倒なので、一つのファイルにまとめたい派です。まとめれば、HTTPリクエストが減るし、キャッシュもされるし、何かと都合が良かったりします。ひとつにまとめると、「そのページで実行するスクリプト」を一つのファイルから切り分けないといけなくなるので、ディスパッチャーが必要です。@kyo_ago さん…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaiju.hatenablog.com%2Fentry%2F20110118%2F1295310812&quot; title=&quot;body要素のid属性またはclass属性をJavaScriptのディスパッチャーに使う - あと味&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>http://a0.twimg.com/profile_images/1407115806/daifuku_normal.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-01-18 09:33:32</published>
  <title>body要素のid属性またはclass属性をJavaScriptのディスパッチャーに使う</title>
  <type>rich</type>
  <url>https://taiju.hatenablog.com/entry/20110118/1295310812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
