Heads up! This blog post hasn't been updated in over 2 years. CodePen is an ever changing place, so if this post references features, you're probably better off checking the docs. Get in touch with support if you have further questions.
In some rare cases, our detection stops loops that it shouldn't. This is more of an art than a science. We had to pick some magic timing numbers that just kinda felt right to us.
- Start monitoring: after 2 seconds
- Maximum time inside a loop without exiting loop: 2.2 seconds
- Stop monitoring after: 5 seconds
These manifest as variables that you can change if you need to.
For example, the middle variable up there is the one you'd most likely change.
window.CP.PenTimer.MAX_TIME_IN_LOOP_WO_EXIT = 6000;
You can actually explore the code for this right in our own console!
Other things to know: