Only check element clientWidth on window resize
Created by: JontyUsborne
checkPortalSize got the clientWidth of the video element, which caused an expensive reflow and potential for dropped frames. Only get the clientWidth when the element resizes.