3 ms·
I had some serious issues with head.js with http://blitz.io http://blitz.io in that the load order was not deterministic causing all sorts of weirdness. For exa
by kowsik 15y ago
I had some serious issues with head.js with http://blitz.io http://blitz.io in that the load order was not deterministic causing all sorts of weirdness. For example jQuery will end up loading after the code that requires jQuery resulting in undefined stuff and form posts not binding properly. While I truly liked the idea, it wasn't for us.
- ricardobeat 15y agoThe HeadJS website says scripts will "run in order", you must have had a buggy version. I have successfully used LABjs (labjs.com), it has more fine-grained control over parallel/serial loading and execution. For a single project. One of the goals was to parallelize script loading, but modern browsers already do that, they will load up to 4 js files in parallel and execute them in order. In the end the performance gain does not justify the added complexity.