Why CSS Should Be Loaded Before JS

Last week I’ve spent countless hours debugging a problem with a piece of Javascript code. The solution was ridiculously simple, but to my big surprise I couldn’t find any sources on the internet documenting it: load your CSS files before your JS files. Let’s discuss some details. It looks better During the loading of your More