title: Get Image Size before Image is Loaded
body: <p>I am using JQuery Masonry and hoping to implement Lazy Load via the wordpress plugin to load images when they appear in the viewport.</p>
  
  <p>The problem is that when using lazy load the masonry elements do not know the image size when outside the viewport and therefore are not spacing the masonry elements correctly.</p>
  
  <p>Without the Lazy Load plugin activated the masonry code works fine.</p>
  
  <p>Is there any way of obtaining the image dimensions via jQuery prior to the image being loaded and set these dimensions in the placeholder for the image -> this basically means setting the height and width to the image placeholder element at the time the masonry container is created. </p>