Kcko
3/26/2015 - 5:45 PM

event.js

$(window).on('resizeEnd', function() {
    console.log('IMMA RESIZED 100 MILLI-FOCKING-SECONDS AGO');
});
$(function() {

    var resizeEnd;

    $(window).on('resize', function() {

        clearTimeout(resizeEnd);

        resizeEnd = setTimeout(function() {
            $(window).trigger('resizeEnd');
        }, 100);

    });

});