Well basically I may want to execute a script that may take as much as 1 hours as well.
What I really want to do is Send SMS to my users using a third party API. So
An alternative to using JavaScript is to add the Refresh meta tag to your page:
Refresh
The two in content="2; url=.. tells the browser to load the url 2 second after the page has loaded.
content="2; url=..