Only apply jQuery waterfall 'reflow' after the images have loaded
问题 i am using jQuery waterfall for my grid style display. To stop the common images overlapping issue i have wrapped the waterfall method in a .load() function such as: $(window).load(function(){ $('#buildcontainer').waterfall({ colMinWidth: 260, defaultContainerWidth: 1000, autoresize: true }); }); The images overlap because the waterfall function is called before the images have fully loaded there for their height cannot be determined. Wrapping the function in the load function prevents this.