Do changes to data-* attributes cause reflows/renders/DOM perf issues?

Thinking about changes at the root element.

Follow

@rem
If the attribute isn't bound to css it probably won't reflow BUT it looks like how you select the node might trigger reflows. you can test this with devtools usint Paint Flashing

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.