dianoche wrote:any final solution?
Still improving. Got it working 95%, but running into the issue now that some libraries that depend on jquery don't work sometimes (e.g. nivoslider).
As ALL libraries are loaded async, the nivoslider may load BEFORE jquery....
So, I change the JS to load jquery first, and THEN all the other resources, but the same error occurs. Used
head.load('jquery', function() { head.load(all_other_scripts);});
Besides that, jquery is working fine for inline scripts, the rest is working, but these errors are quite random.
It will be cool if someone else is investigating this solution too, so we are working on it together.