Unverified Commit 05a732eb authored by Emilio Cobos Álvarez's avatar Emilio Cobos Álvarez Committed by GitHub

Remove useless getComputedStyle call. (#27969)

See https://github.com/w3c/csswg-drafts/issues/6501 to see how I found this.

This line doesn't recompute layout in browsers, because `"height"` is given as a pseudo-element name rather than a property.

The right way to do what it wants is `getComputedStyle(document.body).height`, but given nobody noticed this (and this is generally never needed, manually triggering layout should never be needed to avoid FOUC) it seems better to keep current behavior and just remove the call.
parent 6124e7d2
......@@ -763,10 +763,6 @@ function doRender(input: RenderRouteInfo): Promise<any> {
).forEach((el) => {
el.parentNode!.removeChild(el)
})
// Force browser to recompute layout, which should prevent a flash of
// unstyled content:
getComputedStyle(document.body, 'height')
}
if (input.scroll) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment