diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2021-02-10 00:41:47 +0300 |
---|---|---|
committer | Danielle Adams <adamzdanielle@gmail.com> | 2021-02-16 17:16:17 +0300 |
commit | dd054ca37fc2c91a3a5ba34ef73c54d60539fc6d (patch) | |
tree | 8bf5d4ce99f9eed0b6f4a1b067c4e908ed0ac9e5 /doc | |
parent | c188466a1855793bebb9048c6de73c6fbdd203eb (diff) |
doc: optimize HTML rendering
Defer rendering sections of docs until they are displayed on
the user's screen.
PR-URL: https://github.com/nodejs/node/pull/37301
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api_assets/style.css | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index d2e79444a93..e1538d962e2 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -372,6 +372,11 @@ dd + dt.pre { #apicontent { padding-top: 1rem; } + +#apicontent section { + content-visibility: auto; + contain-intrinsic-size: 1px 5000px; +} #apicontent .line { width: calc(50% - 1rem); |