4 ms·I'd recommend wrapping this with inside of window.onresize as well.by fourstar 14y agoI'd recommend wrapping this with inside of window.onresize as well.