//  clientsize.js

function clientSize(){
    document.getElementById('CL_SIZE').innerHTML = window.innerWidth + ' x ' + window.innerHeight;
}

let timer = 0;

window.onresize = function(){
    if(timer > 0){
        clearTimeout(timer);
    }

    timer = setTimeout(function(){
        clientSize();
    }, 100);
};