angular.js - If I use reactjs or angularjs router to build a single-page APP, will the page occupy too much memory?
滿天的星座
滿天的星座 2017-05-15 16:57:04
0
3
620

After the page transition, how is the memory of the previous page destroyed? Will it affect performance?

滿天的星座
滿天的星座

reply all(3)
小葫芦

You can configure the cache number of pages. When the maximum cache number is reached, the earliest page will be moved out of the memory. When rolling back, it will be judged whether it exists in the cache, and then it will be determined whether to read the cache or the server.

巴扎黑

Basically don’t worry. Generally speaking, if you follow the official recommended writing method, you don’t need to worry about memory release. The framework will take care of these things. If you want to know more, you can take a look at closures and the automatic destruction mechanism of js.

左手右手慢动作

Yes, it mainly depends on how you write the code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template