Current time: 10-17-2019, 03:59 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Slow download of jQuery from Google CDN
02-27-2012, 08:02 PM
Post: #1
Slow download of jQuery from Google CDN
I've noticed this a few times and tested it from a few locations on both sides of the Atlantic...

Resources 16 & 19 in the following tests ar jQuery and jQuery UI retrieved from the Google JS API CDN

http://www.webpagetest.org/result/120227...1/details/

For some reason the download times are far larger than I'd expect:

jQuery - 918ms for 27.9KB
jQuery UI - 1518ms for 51.3KB

I've tested the same page in Chrome and see nothing like the same level of delay.

Any ideas what might be going on?

Thanks

Andy

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
02-28-2012, 12:19 AM
Post: #2
RE: Slow download of jQuery from Google CDN
Looking at the bandwidth line, it looks like the requests are just competing for resources with other downloads that are going on at the same time. It is also possible that IE's networking stack is running into some contention trying to read the different requests since the data is measured from the browser's perspective but I'd be more inclined to believe it is just bandwidth starved. Try a higher bandwidth connection (or a dedicated test page) and see if you see the same behavior.
Visit this user's website Find all posts by this user
Quote this message in a reply
02-29-2012, 09:15 AM
Post: #3
RE: Slow download of jQuery from Google CDN
Thanks Pat,

I think I'll have to knock up a dedicated test case as I ran some more tests with even more confusing results!

Firefox 3.6 shows the same delay (http://www.webpagetest.org/result/120228...1/details/)

Chrome gives a -2 error for the resources from the Google CDN - presuming this is a SSL issue (http://www.webpagetest.org/result/120228...1/details/)

Running IE9 at 5Mbps maxed out the CPU!

Testing from the UK with IE9 and HTTPWatch shows they download in a reasonable time BTW

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
02-29-2012, 09:36 AM
Post: #4
RE: Slow download of jQuery from Google CDN
Not directly related, but the Google CDN also serves the files over http - you can use protocol-relative urls //ajax.googleapis.com.... or http:// - the samples on the site just happen to be for https.

Switching to http will get them delivered a bit soner (and probably change the overall timing).
Visit this user's website Find all posts by this user
Quote this message in a reply
03-06-2012, 02:43 AM
Post: #5
RE: Slow download of jQuery from Google CDN
(02-29-2012 09:36 AM)pmeenan Wrote:  Not directly related, but the Google CDN also serves the files over http - you can use protocol-relative urls //ajax.googleapis.com.... or http:// - the samples on the site just happen to be for https.

Switching to http will get them delivered a bit soner (and probably change the overall timing).

Knocked a couple of test pages

With HTTPS:

http://www.webpagetest.org/result/120305...cfc56227f1
c1f3dc86a/1/details/

Without HTTPS:

http://www.webpagetest.org/result/120305...1/details/

Neither of which show the same level of delay as in the original, so guess I need to hunt around in the original test a bit more.

Andy

Using WebPageTest - http://usingwpt.com/
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)