Set a function to run in 30 seconds and be able to cancel it?
<p>I have an app thats really good but it wont load for some users. I have a lite version that always loads but not nearly as good so I want to set a javascript to wait 30 seconds and then switch from the main app to the lite app. But if the main app loads in the 30 seconds cancle the switch to it stays on the main app.</p>

<p>Basically I want to wait 30 seconds then run a function, but I want to be able to cancel.</p>

<p>Thanks!</p>
