| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Should we use this syntax instead? I'm suggesting this based on the other functions in the file. |
Sorry, something went wrong.
Sorry, something went wrong.
Defer rendering sections of docs until they are displayed on the user's screen. PR-URL: nodejs#37301 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
This change landed despite a failing Jenkins CI and now Jenkins is broken. This change breaks test/doctool/test-doctool-html.js. |
Sorry, something went wrong.
|
The fix appears to be just adding <section> tags to the expected results. Going to try to fix it now, but if someone beats me to it, great. |
Sorry, something went wrong.
|
Isn't it weird the test failure is reported on for Windows CI? |
Sorry, something went wrong.
I guess we're only running doctool there? I don't know, that is surprising. |
Sorry, something went wrong.
Attempt to fix that in #37398. |
Sorry, something went wrong.
Refs: nodejs#37301 PR-URL: nodejs#37397 Reviewed-By: Danielle Adams <adamzdanielle@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Defer rendering sections of docs until they are displayed on the user's screen. PR-URL: #37301 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
How were the 5000px calculated? (for intrinsic-size) |
Sorry, something went wrong.
It wasn't calculated, it's just a random value which is supposed to be greater than the user screen height.
Nothing – until the user scrolls near the supposed element position, and the browser will have to render the actual content. The only (I think) visible consequence is the scroll bar doing some weird jumps when scrolling (and the much improved render time of course). You can already check how it performs by visiting https://nodejs.org/api/all.html. |
Sorry, something went wrong.
Defer rendering sections of docs until they are displayed on the user's screen. PR-URL: #37301 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This pr fixes the jittery scrolling behavior introduced in nodejs#37301 fix:nodejs#40099 refs:https://infrequently.org/2020/12/resize-resilient-deferred-rendering/
| Back | FazBrowse Home | New Git URL |
Defer rendering sections of docs until they are displayed on the user's screen.
Rendering+painting time of all.html on master is ~1min on my machine:

Rendering+painting time of all.html on this branch is ~1s on my machine:

This feature is only available for Chromium browsers using version 85+ (https://caniuse.com/?search=content%20visibility), and won't change much for other browsers.