Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE11 XMLHttpRequest really slow performance

I have an angular material SPA web site that performs very well in Chrome, Firefox and Edge, but it lags massively in IE11.

I am aware of angular material issues with animations and styles in IE11 and have made several changes to improve general performance in that area (disable animations, even removing theming, etc...).

But, even if that improves the application slightly, I can still see a massive lag when loading resources, where every request spends a long (really long time) to be processed. I have checked the server and the response is always in the milliseconds range (as it is in Chrome), but it takes forever in IE11.

Please check the load network times for IE11.

enter image description here

vs Chrome.

enter image description here

Any ideas of what might be causing this?

Cheers,

like image 395
pedromarce Avatar asked Oct 18 '16 14:10

pedromarce


1 Answers

I would attach a REAL OS debugger to the browser and try and determine if IE is actually spinning off a thread to execute the XHR. This is a difficult investigation but it would explain a lot.

Most browsers do and then marshal callbacks and data back to the MAIN UI THREAD. But IE is OLD and I do not know what it does.

On another thought. Our LARGE company that moves slow finally dropped IE support allowing us to write decent code with promises without a polyfill. Our codebase is slowly cleaning up other weird polyfills that we acquired over time. For the longest time we could NOT write for (var key in thing) because a polylfill would show up in the list.

You might consider that discussion with customers. It starts with "How about Edge or Firefox" You can talk about other things getting replaced. You refresh your Phone and laptop...how about the browser...

Above all good luck.

like image 60
cbuteau Avatar answered Sep 20 '22 11:09

cbuteau