This is my second question today. It turned out (experimentally confirmed) that the leak is due to animation. This is a simple js, html and css:
<img id='myId' src='images/myImg.gif'> So, in the first version, I found a js-script, which changes the gif in the fly. I figured that src is not effective every time, and the problem is this. Then I created 3 pictures and began to hide unnecessary ones with the help of that script. To my surprise, there is less memory! Gifok three, 300Kb, 300Kb and 700Kb. For a minute of operation, this function consumes 100 MB from the application. All this works in WebView (for Cardova).
Why do you think this happens? And how is it more rational to fix?
Addition: The effect does not disappear anywhere. It is enough to add 1 line with gif, as the leak begins. I certainly comment on the cycle during the experiment.