I’m using Masonry.js to lay out the items, and it’s working but before all the photos are loaded, so the blocks are overlapping unless you refresh the page. I added ImagesReloaded.js to fix that problem, but it persists.
Then it occurred to me that it might be the callback in the plugin, which is this:
(#posts is the div that holds all the masonry items, which have the class .itemBlock)
Is there something wrong with the callback which is failing or preventing the ImagesReloaded script from working?
- The topic ‘Masonry items overlapping…is it the callback?’ is closed to new replies.