Forum Moderators: open

Message Too Old, No Replies

Loading Ext Java files after the rest of the body?

         

Free_Man

7:55 pm on Mar 6, 2002 (gmt 0)

10+ Year Member



Hello,

On our site we have an external .js file that is loading off another url. I found that the ping time for their servers was around 100ms - very bad!

What I would like to do is force this javascript to load after the rest of the page does so ---

What was happening was that the page was loading up only when the script had finished loading, around 7-8 seconds (on cable) later!

This is simply not acceptable...Any work arounds?

Thanks all!

Free_Man

8:51 pm on Mar 6, 2002 (gmt 0)

10+ Year Member



I guess what I am asking, is there any way to force a script to load after the rest of the page loads???

Words of wisdom?

tedster

10:55 pm on Mar 6, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You've got images, javascript and cgi-script being called from two other servers.

I'm guessing it's not the javascript (which seems minor) but the off-server cgi script that you're using for website stats that's hanging things up. I'd get that script completely OUT of the table where the rest of your page lives.