check if browser is loaded or resized code example Example: js detect screen size change window.onresize = function(){ console.log("resize"); }