Manipulating the DOM in a JS Class docs promote DOM query in constructor

https://docs.gitlab.com/ce/development/fe_guide/design_patterns.html#manipulating-the-dom-in-a-js-class

This suggest's we're okay with queries in the constructor, which I think we are to some degree, but we definitely shouldn't be on document.

Edited Jun 30, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading