At first sight, the DOMContentLoaded event is very simple. How to check whether a string contains a substring in JavaScript? However, the below snippet, which uses just a tiny bit of JavaScript comes to the rescue and will defer any CSS file you want: Copy and paste the above script to your page. While using W3Schools, you agree to have read and accepted our,
, ,