I have a loop execution that needs to run in all browsers.
in chrome/ff etc the execution runs fast and fine. in IE it's slow and end's up dispatching a prompt saying a script is running slow (no good).
Any ideas on how to get around something like this? I mostly just need to get rid of the IE prompt for 7/8
** edit **
Here's code:
if(this.handicap()) {
while(this.hasGraphChanged()) {
this.gravity(this.separate());
}
}
This is a VERY large project, so instead of listing all the code, I'll go for a quick explanation.
this.handicap: returns true if the browser if IE7/8 this.hasChanged: returns true/false depending if there is a change AFTER a draw update this.gravity: processes drawing algorithm based on p1(array)