Problem including Javascript from external servers

Some considerations about problems which can occurr when including javascript from external servers.

Javascript file doesn't exist

The script wants to include a javascript file which doesn't exist on the specified location.

This causes no problem for the performance of this script, because the browser get immediatlely from server the notification that the requested file doesn't exist.

The execution of the included javascript exceeds the maximum execution time for script code

The whole script hangs whereever the <script></script> is located.

External server is down

If the external server (on which the javascript file to be included resides on) is down (or very slow) the HTML code above the line with the include statement is executed and printed to the web page. This works for Firefox, Internet Explorer and Opera.

AJAX call hangs

A complete loaded javascript file calls per AJAX an external script which execution hangs. The main page is displayed except of this part which is computed by the AJAX call.

<script type="text/javascript" src="xxx" /> don't work with Internet Explorer

This don't work in Internet Explorer 7 and don't result in an error or warning but in an empty page.