Modernizr.load callback executing before loaded script
问题 At a certain point on my javascript I have the following (using Modernizr 2.6.2): Modernizr.load([{ load: '/path/file.js', complete: function () { //do stuff } }]); It works great most of the time, except on IE8, about 1 time out of 3 it executes the callback first then the script being loaded. I am adding a break point on the callback and another inside file.js. Both scripts are being executed, just swapping the order at times. I tried to isolate and reproduce the error, but I couldn't. It