Skip to main content
Participant
August 4, 2017
Answered

Simple animations slow down browser with violation 'setTimeout' handler

  • August 4, 2017
  • 2 replies
  • 2721 views

Lately, my animations have been generating a violation when testing and publishing an HTML5 canvas.  It happens on simple animations and more "complicated" animations.

One of my simpler ones starts with a button that has a "gotoAndPlay" to another frame with a movieclip, play the movieclip and stop.  When I test the animation, my browser slows down my computer and the violation is something like this:  "[Violation] 'setTimeout' handler took 79ms createjs-2015.11.26.min.js:12".  It will give this violations thousands of times until I close the browser window. 

Does anyone know what is causing this?  It's been happening to my animations for the last month or two.  I updated Animate CC today and it's still happening.

This topic has been closed for replies.
Correct answer kglad

no one likely knows.

you should start removing things from your project until you isolate and pinpoint the problem.  you can then upload it somewhere, post a link and some one can check it.

2 replies

Participating Frequently
October 24, 2017

One solution I found to avoid this in my case was to disable the sprite sheet in the publish settings

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 5, 2017

no one likely knows.

you should start removing things from your project until you isolate and pinpoint the problem.  you can then upload it somewhere, post a link and some one can check it.