jQuery - wait for content to load before running JS #jquery
$(window).load(function() { $.when( object_compare_height() ).done(function() { set_object_compare_layout(); }); });