Skip to content

Only check element clientWidth on window resize

Vinay Rosenberg requested to merge github/fork/bbc/checkPortalSize into development

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.

Merge request reports