$(window).on('load', function(){ var demovideoslanding = $("#demovideoslanding").flipster({ style:'flat', spacing: 0.025, scrollwheel: false, loop: true, touch: true, buttons: 'custom', buttonPrev: '', buttonNext: '' }); });