FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

doc: remove flicker on page load on dark theme by demakoff · Pull Request #50942 · nodejs/node · GitHub

/ node Public

doc: remove flicker on page load on dark theme - #50942

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
demakoff:no-flicker-on-load
Nov 27, 2023
Merged

doc: remove flicker on page load on dark theme#50942
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
demakoff:no-flicker-on-load

Conversation

demakoff commented Nov 27, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Theme applying logic gets loaded and executed in async mode, so often there is a
delay in applying the proper theme to a page which leads to flicker on dark theme.

Resolved by moving critical logic to the page head (sync script). No impact on performance was detected.

Before:
UI

Performance

After:

UI

Performance

Theme applying logic get loaded and executed in async mode, so often
there is a
delay in applying the proper theme to a page which leads to flicker on
dark theme. Resolved by moving critical logic to the page head

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/nodejs-website

nodejs-github-bot added the doc Issues and PRs related to the documentations. label Nov 27, 2023

ovflowd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This whole thing feels hacky, but hey, the whole codebase has been long-time hacky.

ovflowd added the fast-track PRs that do not need to wait for 48 hours to land. label Nov 27, 2023

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @ovflowd. Please 👍 to approve.

ovflowd added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 27, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 27, 2023
nodejs-github-bot merged commit d42949e into nodejs:main Nov 27, 2023

Copy link
Copy Markdown
Collaborator

Landed in d42949e

demakoff deleted the no-flicker-on-load branch November 27, 2023 16:18
targos pushed a commit that referenced this pull request Dec 4, 2023
Theme applying logic get loaded and executed in async mode, so often
there is a
delay in applying the proper theme to a page which leads to flicker on
dark theme. Resolved by moving critical logic to the page head

PR-URL: #50942
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
targos mentioned this pull request Dec 4, 2023
richardlau pushed a commit that referenced this pull request Mar 25, 2024
Theme applying logic get loaded and executed in async mode, so often
there is a
delay in applying the proper theme to a page which leads to flicker on
dark theme. Resolved by moving critical logic to the page head

PR-URL: #50942
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
richardlau mentioned this pull request Mar 25, 2024
aduh95 pushed a commit that referenced this pull request Feb 10, 2025
Theme applying logic get loaded and executed in async mode, so often
there is a
delay in applying the proper theme to a page which leads to flicker on
dark theme. Resolved by moving critical logic to the page head

PR-URL: #50942
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Claudio Wunder <cwunder@gnome.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. fast-track PRs that do not need to wait for 48 hours to land.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL