javascript - Will the infinite loop scrolling of limarquee.js cause memory leaks?
phpcn_u15822017-05-19 10:28:55
0
1
565
Demo address http://www.dowebok.com/demo/188/ I tracked it for more than 1 minute and found that the memory usage rose sharply, which means Memory leaked? I also want to ask, is there any infinite loop scrolling that does not leak memory?
Infinite scrolling means starting a timer, whether using CSS3 animation or js timeout or interval. When the time interval is very short (operation execution time > timer period), the queue program will not be executed in time, and the process queue will be full after a period of time, so the memory usage will increase. To prevent the queue from being full is to make the time period of the timer longer or to make... the code execution time
Infinite scrolling means starting a timer, whether using CSS3 animation or js timeout or interval.
When the time interval is very short (operation execution time > timer period), the queue program will not be executed in time, and the process queue will be full after a period of time, so the memory usage will increase.
To prevent the queue from being full is to make the time period of the timer longer or to make... the code execution time