V
V
Vadim2016-02-11 19:57:21
JavaScript
Vadim, 2016-02-11 19:57:21

How to optimize Angular JS apps in IE11?

There is a large application in angular. The problem occurs in ie11, the application absorbs one of the processor cores completely, one hundred percent and because of this it terribly slows down. In chrome, the load is uniform. I found the scalyr library which reduces the number of watchers where they are not needed. But this did not affect the workload in any way. In chrome it became faster to work, but not for IE. Is there a way to fix this, and is it entirely up to the code itself, as the code is optimized as much as possible? The number of watchers for each page does not exceed the magic number of 2000.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2016-02-11
@lega

does not exceed the magic number 2000.
This number does not exist, well, or at least it is now in the region of 100K-500K
the application absorbs one of the processor cores completely, one hundred percent, and because of this it terribly slows down.
eats percent. even if you do nothing?
Check the weight of the resulting DOM, if you have a lot of elements or a lot of pictures (especially gif) / svg, then the DOM itself can slow down, even if you cut out all the js.
Do profiling, maybe you have some incorrectly heavy watches, or recursive ones. Also reduce the number of manual bindings ($watch), often they can be replaced with events.
Break the application into independent components (sub-applications), so the number of watches can be reduced by orders of magnitude.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question