-
Notifications
You must be signed in to change notification settings - Fork 22.4k
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
Guide on reflow and performance optimizations #26330
Comments
hey i want to contribute to this @twig-atl can you assign this issue to me? |
@advitiya7 I don't have access to do that |
@advitiya7 , I've assigned you :). Thanks! |
From #27189 (comment)
|
Maybe we should just close this issue then? |
Isn't a guide for handling reflow in order, though? I understand that the performance cliff is only triggered in certain cases, but we probably still need to remind readers that it's not zero/low-cost like it may seem as a getter. |
Oh, I only read the content, didn't notice the title change. Yes, we should I suppose, but perhaps make the description match? |
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect
What specific section or headline is this issue about?
getBoundingClientRect() triggers a reflow and performance issues
What information was incorrect, unhelpful, or incomplete?
It was missing something that might be vital for people when debugging issues.
What did you expect to see?
At least a remark or footnote about reflow.
Update from #27189 (comment):
Do you have any supporting links, references, or citations?
https://toruskit.com/blog/how-to-get-element-bounds-without-reflow/
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/element/getboundingclientrect
The text was updated successfully, but these errors were encountered: