Wednesday, April 02, 2014

jQuery load causes IE 10/11 to crash

If you are getting crashing errors in IE 10 and 11 that say that the domain is not responding with a button to "recover webpage".

 Look for two things, I am certain there are more out there, so feel free to let me know if you find any others.

 1. jQuery calls to the load function $('someimage').load( NEW_IMAGE_URL,function(){ });

 If you find these just replace them with a simple attr update like so
 $('someimage').attr('src', NEW_IMAGE_URL);

 2. IE has trouble with the console so make sure to remove or test the browser before using console.log();

Stumble Upon CodePyro


Post a Comment