Chapter 7. Custom Functions for Custom Effects: What Have You Done for Me Lately?
A storm is brewing
The Monster Mashup web app you built in Chapter 5 was a big hit with kids and their parents. But it sounds like there might be a bug that’s making the lightning go haywire. DoodleStuff’s quality assurance manager contacts you with some issues and a feature request for making Monster Mashup better.
Try reproducing the issue. Then think about what’s going wrong with the lightning functions. Why do they all crash together when someone switches from one tab to another?
We’ve created a monster...function
The lightning function we created in Chapter 5 has turned out to be a bit of a monster. It runs and runs, even if the user navigates away from the page. When the user returns to the tab, the timer has to catch up, and it ...