Hi all
We have been using jsclass for several versions of IE without any problem. Recently though I have noticed problems with our pages on Server2012 R2 (which comes with IE11). Pages using js.class appear to hang and never finsih loading.
On close examination the problem seems to be with loader-browser.js and the manner in which it is checking for script loading:
script.onload = script.onreadystatechange = function() {
var state = script.readyState, status = script.status;
if ( !state || state === 'loaded' || state === 'complete' ||
(state === 4 && status === 200) ) {
fireCallbacks();
script.onload = script.onreadystatechange = self._K;
head = null;
script = null;
}
};
head.appendChild(script);
In my testing the function connected to the onload method never runs, and thus fireCallbacks() never executes.
I have seen some information relating to changes in IE11 and scripts.onreadystatechange no longer being available:
http://msdn.microsoft.com/en-us/library/ie/bg182625%28v=vs.85%29.aspxIs this something that needs to be updated in js.class to work, or am I on the completely wrong track here? Any feedback appreciated.
Thanks
Anthony