Jump to Categories

Screen Resize Script


// Variables
var $window = $(window);
var id;

// Each time the user resized the window call this
$window.resize(function () {

    // Reset the timeout
    clearTimeout(id);
    
    // Call the function after it has stopped being resized
    id = setTimeout(screenResize, 500);
    
});


// Call the function
function screenResize() {

    // CODE
	
}