Forum Moderators: open

Message Too Old, No Replies

Javascript includes WILL slow down a site if the site included from

is slow, right?

         

HughMungus

4:49 am on Feb 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In other words, if I have a Javascript include (say, Adsense) and it's slow to load, will that slow the loading of my site altogether, or, just the Javascript include part. Asking because I just added a Javascript include and I think my site is running slower now as a result.

rocknbil

4:56 pm on Feb 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the site is external then the time taken to connect to the site and return the content has to be taken into consideration, yes.

For a time I was on a dreadfully slow connection. Everyone should have to do this, it humbles you and brings some things to light. :-) One of those things I found is that even on a local server, an included .js slowed the page down considerably. Mind you, this connection was slower than even dialup, allowing the page to play out in slow-motion. It would take up to a minute and a half to load the page with the include, but when I pasted the js in the header it loaded in about 15-30 seconds.