Timeout on loading .js script

S

Steve

How can I let my script try to load a .js file and then if the .js
file doesn't load in a selected time period print an apology move on
with the rest of the page.

For instance I am using this line but sometimes the http site is down
and then my page doesn't load.

<script src="http://xxxx.com/frame.js"></script>

Cheers
 
D

drink.the.koolaid

Steve said:
[snip] sometimes the http site is down and then my page doesn't load.

What does the script do? Can you replicate its functionality with a
script of your own that is hosted on a more reliable site?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top