JS RESTRA DEL VENTANA DE VISTA JS
window.addEventListener('resize', updateDevice)
florinrelea
window.addEventListener('resize', updateDevice)
function resizedw(){
// Haven't resized in 100ms!
}
var doit;
window.onresize = function(){
clearTimeout(doit);
doit = setTimeout(resizedw, 100);
};