Skip to content

Avoid FOUC on some features - #2605

Merged
fregante merged 4 commits into
masterfrom
new-loading-mechanism
Dec 8, 2019
Merged

fregante merged 4 commits into
masterfrom
new-loading-mechanism

Conversation

@fregante

@fregante fregante commented Dec 7, 2019 •

Copy link
Copy Markdown
Member

Fixes #2604

Naming suggestions welcome. Perhaps features.onAjaxedPagesInstant (like the existing features.onAjaxedPagesRaw)

Before

This shows a page refresh. Notice how releases-tab, more-dropdown and forked-to are not there for a moment before dom-ready happens.

before

After

Notice how parse-backticks still has a FOUC (Flash Of Unstyled Content) but it no longer happens for the 3 features above.

after

@fregante fregante added the meta Related to Refined GitHub itself label Dec 7, 2019
@fregante fregante changed the title New loading mechanism Enable FUOC-free features Dec 7, 2019
@fregante fregante changed the title Enable FUOC-free features Enable FUOC-free features 🎉 Dec 7, 2019
@fregante fregante changed the title Enable FUOC-free features 🎉 Avoid FOUC on some features Dec 8, 2019
@fregante
fregante merged commit 64499b9 into master Dec 8, 2019
@fregante
fregante deleted the new-loading-mechanism branch December 8, 2019 19:22
@fregante fregante mentioned this pull request Dec 8, 2019
@fregante fregante mentioned this pull request Jan 6, 2020
6 of 7 tasks
@refined-github refined-github deleted a comment from liow788 Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself under discussion

Development

Successfully merging this pull request may close these issues.

Make Refined GitHub act sooner with element-ready

1 participant