https://developers.google.com...
It is said that domContentLoaded generally indicates the time point when both DOM and CSSOM are ready
Page 390 of the js height book says not to wait for the css file to be downloaded.
Then the question is whether to wait until CSSOM is ready
DOMContentLoaded can only be bound to window/document. (The DOM tree is not built, and there are window/document objects, so binding to them makes sense (it depends on when the DOM tree is built); but binding to ordinary elements is meaningless. You must first select the element. Since you can Select, it must be built, as follows:)
The difference between DOMContentLoaded and load
The steps for loading DOM documents are: