Say I have this in a .jade file
The main.js file is supposed to use various functions from ocanvas which is included previously.
However, in my node.js server it is unable to do so because ocanvas for some reason loads after the main.js in the terminal running the server:
Why is it not loading in the sequence that is in the jade file?
The browser notices that it has cached versions of those resources, and so it sends conditional requests to check if they’ve been changed. (The 304 means that they haven’t.) This doesn’t necessarily have to happen in any particular order, and a browser is free to perform any optimizations in loading resources it wants, too.
This recipe can be found in it's original form on Stack Over Flow.