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

Document which functions can cause layout thrashing (forced reflow) #522

Open
noamr opened this issue Jan 24, 2024 · 1 comment
Open

Document which functions can cause layout thrashing (forced reflow) #522

noamr opened this issue Jan 24, 2024 · 1 comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. proposal Auto label for new proposals added via the suggestion form

Comments

@noamr
Copy link

noamr commented Jan 24, 2024

Proposal

There are many JS functions that can generate forced reflow / layout thrashing (calling style/layout calcs synchronously).
It would be great if a function/getter that has that side effect would have that marked in its mdn entry

See this gist by @paulirish as a list we can start from.

Browser support

No response

Tasks

  • [ ]

Dependencies

  • [ ]

Additional information

No response

Are you willing to support this work?

No response

@noamr noamr added needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. proposal Auto label for new proposals added via the suggestion form labels Jan 24, 2024
@kurtextrem
Copy link

kurtextrem commented Jan 26, 2024

Definitely a +1 from my side. I'd also propose to add an updated list of css-triggers to MDN (maybe even per CSS prop, e.g. similar to "Baseline" just less prominent?) -> https://github.com/GoogleChromeLabs/css-triggers.
The original domain got hijacked and now serves mostly ads, someone re-upped the old css-triggers to https://www.lmame-geek.com/css-triggers/, meanwhile. It's really dated by now and doesn't contain new CSS props like content-visibility etc.

I can also open a new issue for this, but maybe we can create a common solution for this (as mentioned, maybe similar to "Baseline", like "Baseline Performance") as a section below "Browser compatibility" or in the browser compat. table by using some kind of icon (maybe the red triangle from devtools)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. proposal Auto label for new proposals added via the suggestion form
Projects
None yet
Development

No branches or pull requests

2 participants