Watch body height

can we listen on window.resize event? will that capture everything?