title: jquery.masonry. imagesLoaded plugin dont running in <head>
body: <p>What I should add to this script for running in head. When I put in the end of body it run well. I think this is due to the fact that the script starts before images are loaded. Example <a href="http://masonry.desandro.com/docs/intro.html" rel="nofollow">http://masonry.desandro.com/docs/intro.html</a> </p>
  
  <pre><code>&lt;script&gt;var $container = $('#container');
  $container.imagesLoaded(function(){
  $container.masonry({
  itemSelector : '.item',
  columnWidth : 300 
   });
  });
  &lt;/script&gt;
  </code></pre>