title: Images does not show immediately after ajax load
body: <p>I'm using an Ajax for partial loading my website. Content of GET data has images but these images appear after few seconds on page. Image size is about 20kB, so this is not a bottleneck.</p>
  
  <p>I'm using php page which returns some content. This page loads in a while with images immediately but with ajax it loads text, but images after few seconds. How can I achieve quick load?</p>
  
  <p>I'm using this function:</p>
  
  <pre><code>function loadMainEvents(resultDiv, cat, limit){
    var spinner = new Spinner().spin(mainPageEvents);
    $.ajax({
      url: "/getMainPageEvents.php?category=" + cat + "&amp;limit=" + limit,
      type: "GET",
      success: function(data){
          resultDiv.innerHTML = data;        
          spinner.stop();
      }
    }); 
  };
  </code></pre>
  
  <p>EDIT:
  I created a test.php which is doing same thing</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js' type="text/javascript"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="div" style="float:left;"&gt;wait&lt;/div&gt;
      &lt;div id="div2"&gt;wait&lt;/div&gt;
      &lt;script&gt;
          $(function () {
              $.ajax({
                  url: "/getMainPageEvents.php?category=&amp;limit=10&amp;from=29.11.2015&amp;to=29.11.2015&amp;pno=1",
                  type: "GET",
                  success: function (data) {
                      $("#div").html(data).on('load', function () {
                          $(this).fadeIn(250);
                      });
                  }
              });
  
              $.ajax({
                  url: "/getMainPageEvents.php?category=&amp;limit=10&amp;from=29.11.2015&amp;to=29.11.2015&amp;pno=1",
                  type: "GET",
                  success: function (data) {
                      $("#div2").html(data).on('load', function () {
                          $(this).fadeIn(250);
                      });
                  }
              });
          });
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>getMainPageEvents.php returns only web content.</p>
  
  <p>Network from developer tools:</p>
  
  <p><a href="https://i.stack.imgur.com/JJbo9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JJbo9.png" alt="Developer tools Network"></a> </p>