jQuery(window).load(function () { var $container = jQuery("#gallery4583"); $container.isotope({ itemSelector: ".item" }); jQuery(window).on("resize", function () {...