Correct way to include CSS after <head>

前端 未结 5 536
自闭症患者
自闭症患者 2021-02-05 07:29

Apparently adding in the document body is considered a bad practice by W3C standards. The same for adding ").appendTo(document.head); callback(); });

The callback function is useful to allow script code that depends on the CSS file to be properly formatted, to run only after the CSS as been added!

提交回复
热议问题