title: Stacking photos when using Masonry.js
body: <p>I had this problem almost every time when I used masonry.js on my websites.
  After the page was completely loaded, the images from the gallery look like this:
  <a href="https://i.stack.imgur.com/Sxnq9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sxnq9.jpg" alt="enter image description here"></a></p>
  
  <p>In order to fix this I need to refresh the page to arrange images correctly like this:
  <a href="https://i.stack.imgur.com/2pdny.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2pdny.jpg" alt="enter image description here"></a></p>
  
  <p>Any advice on how to solve this issue ?</p>