<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mizchi</author_name>
  <author_url>https://blog.hatena.ne.jp/mizchi/</author_url>
  <blog_title>mizchi's blog</blog_title>
  <blog_url>https://mizchi.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>問題 モバイルは回線が不安定なので、ロードの失敗が頻繁に起こります。 開発時は高速なwifi環境で開発しているので、リリース間近になって帯域を圧迫していることに気づいたりします。 解決方法 画像を先読みします var preload = function(src){ var d = $.Deferred(); var img = new Image; img.src= src; img.onload = d.resolve img.onerror = d.reject return d.promise(); }; 何をやっているかというと、空のimgタグをつくってそこに画像を読み込みます。その…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmizchi.hatenablog.com%2Fentry%2F2013%2F12%2F17%2F104132&quot; title=&quot;ボーイフレンドを直す方法　あるいは賢いjQuery.Deferredの使い方 - mizchi&amp;#39;s blog&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://cdn-ak.f.st-hatena.com/images/fotolife/m/mizchi/20131217/20131217104008.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-17 10:41:32</published>
  <title>ボーイフレンドを直す方法　あるいは賢いjQuery.Deferredの使い方</title>
  <type>rich</type>
  <url>https://mizchi.hatenablog.com/entry/2013/12/17/104132</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
