--- layout: default title: Image based items description: A demo of how NOT to use images with shuffle extraJS: [ "demos/images.js"] ---
In this demo, the height of each item in the grid depends on the image. If Shuffle is initialized before the images load, the heights it calculates will be incorrect.
Go to this images demo for a solutions.
Shuffle will call layout()
again once the window's load
event fires to resolve this and other async assets (like fonts) which could affect the size of your items. Resizing the window would also fix it.