Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Increasing lag with jQuery's attr?

$
0
0

Hi,

I'm working on a project in Animate that's much bigger than what I've done in the past, and I'm noticing some weird issues with lag. I have multiple instances where I change an <img> tag's src with jQuery's attr() method, for example: sym.getSymbol("answer-circles").$(answer+"circle").attr("src","images /question-circle-correct.png");

As my project goes on (after roughly 25-30 seconds) there starts to be a noticeable delay in when the method is called, and when the image actually changes. This gap seems to get linearly longer and longer. An old post here suggested that animation lag can be born out of rapidly looping symbols. I tested this by extending the length of my symbols (just copy-pasting their animation out multiple times), and then turning off the symbols altogether when that didn't seem to have an effect. What really confuses me is that there's no framerate hitching to speak of, and the rest of my code seems to execute right when it's called. attr() is the only thing that's getting tripped up. I don't think my code is THAT inefficient, so I can't think of what else might be causing this. Thanks


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>