fix jittery scrolling
Subsystem: doc
This pr fixes the jittery scrolling behavior introduced in https://github.com/nodejs/node/pull/37301
Fixes: https://github.com/nodejs/node/issues/40099 Refs: https://infrequently.org/2020/12/resize-resilient-deferred-rendering/