Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to reduce the number of style recalc #942

Merged
merged 2 commits into from
Apr 8, 2021

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Mar 19, 2021

This could help a little. Unfortunately, I can't test the whole site locally (no functional ruby env here).

@mkouba mkouba requested a review from gsmet March 19, 2021 10:51
@mkouba
Copy link
Contributor Author

mkouba commented Mar 19, 2021

@github-actions
Copy link

github-actions bot commented Mar 19, 2021

♻️ PR Preview a1fc09b has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@mkouba mkouba requested review from FroMage and removed request for gsmet March 22, 2021 14:35
@FroMage
Copy link
Member

FroMage commented Mar 23, 2021

Actually, I believe we need to work on the shadow table for this to work. Lemme give it a try. But damn I had garbage collected the memory of this :(

@FroMage
Copy link
Member

FroMage commented Mar 23, 2021

I've done this with a shadow DOM, at the cost of some false positives, but the time required for setting it up is now down to 250ms on my machine. We should have done this long ago, but initially there was no need since we had much fewer entries.

The problem is that our script doesn't get called until quite a long time, because something is taking forever and delays the page load. I'm not sure what, though.

@FroMage
Copy link
Member

FroMage commented Mar 23, 2021

Note that this actually needs fixing in the quarkus repo, not just here.

@FroMage
Copy link
Member

FroMage commented Apr 8, 2021

@mkouba @gsmet we should merge this somehow, no?

@mkouba
Copy link
Contributor Author

mkouba commented Apr 8, 2021

@mkouba @gsmet we should merge this somehow, no?

+1 I've tried the the preview page and it seems to load faster...

@gsmet
Copy link
Member

gsmet commented Apr 8, 2021

@FroMage I can merge it for sure. I'll let you fix it in the Quarkus repo as you said it was needed?

@gsmet gsmet merged commit 3427b71 into quarkusio:develop Apr 8, 2021
@FroMage
Copy link
Member

FroMage commented Apr 9, 2021

@FroMage I can merge it for sure. I'll let you fix it in the Quarkus repo as you said it was needed?

well, yeah, that's the source, when you make a release, no?

@gsmet
Copy link
Member

gsmet commented Apr 9, 2021

Yes if this file is coming from the main repo, it needs an update before the next release (probably next Wednesday).

FroMage added a commit to FroMage/quarkus that referenced this pull request Apr 12, 2021
Same changes as for quarkusio/quarkusio.github.io#942: use shadow DOM
while building the page to make it load faster
@FroMage
Copy link
Member

FroMage commented Apr 12, 2021

Done: quarkusio/quarkus#16436

gsmet pushed a commit to gsmet/quarkus that referenced this pull request Apr 13, 2021
Same changes as for quarkusio/quarkusio.github.io#942: use shadow DOM
while building the page to make it load faster

(cherry picked from commit 83917ba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants