Created by: alpadev
Closes #34103 (closed)
Since #34114 is more focused around changing the way we register our components with jQuery, this PR is changing the onDOMContentLoaded
utility function, to make use of an array to cache callbacks (while the document is loading) and execute them all at once. Therefore we register only one DOMContentLoaded
event listener instead of one for every call to the function.