Answer the question
In order to leave comments, you need to log in
How does resize affect performance if it is used multiple times on a page?
Hello everyone) The question is as follows. I understand angular and break everything down into components. How much does the resize event affect site performance if it hangs on several components, and does it affect it at all?. One component is a menu, and the content is another, and so on (I don’t know where else I need to keep track of the size and make changes to the component depending on the width and height). The effect of resize became interesting.
Example:
1) I track the change in the menu width and change the classes that are tied to one variable.
2) I track the height of the blocks under the menu and change their height depending on the change in the height of the window.
These events are tracked in different components. But all of them are displayed on 1 page.
Thank you for your attention.
Answer the question
In order to leave comments, you need to log in
How does <insert any event> affect performance if it is used multiple times on a page?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question