WebPagetest Forums
Slow download of jQuery from Google CDN - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Slow download of jQuery from Google CDN (/showthread.php?tid=10662)



Slow download of jQuery from Google CDN - andydavies - 02-27-2012 08:02 PM

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_R0_0ee90552f1d07e947a52dd975ce59ce7/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


RE: Slow download of jQuery from Google CDN - pmeenan - 02-28-2012 12:19 AM

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.


RE: Slow download of jQuery from Google CDN - andydavies - 02-29-2012 09:15 AM

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_6M_d1314c5d271dda88324c757e629b8479/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_FP_e0c36f3945d84257640ca7aadfa6a208/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


RE: Slow download of jQuery from Google CDN - pmeenan - 02-29-2012 09:36 AM

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).


RE: Slow download of jQuery from Google CDN - andydavies - 03-06-2012 02:43 AM

(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_V8_dde9aa9c5fdfccfc56227f1
c1f3dc86a/1/details/

Without HTTPS:

http://www.webpagetest.org/result/120305_GP_4677e6732b62b6898fdab425642c4a10/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.