Current time: 11-21-2019, 08:00 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
jquery from google or from your domain ?
07-04-2011, 08:04 PM
Post: #1
jquery from google or from your domain ?
Look at this results to find the answer.
German hosted domain, tested in Dulles.

IE9 jquery from own domain

http://www.webpagetest.org/result/110704_28_ZJAK/

IE9 jquery from Google

http://www.webpagetest.org/result/110704_KZ_ZJB6/

Chrome jquery from own domain

http://www.webpagetest.org/result/110704_E2_ZJ9P/


Chrome jquery from Google

http://www.webpagetest.org/result/110704_Q2_ZJA4/
Find all posts by this user
Quote this message in a reply
07-05-2011, 11:57 AM
Post: #2
RE: jquery from google or from your domain ?
Interesting results.

Note: Your test contain some errors . http://www.webpagetest.org/result/110704_Q2_ZJA4/ is slower because of a slow DNS query to your site, NOT the google host. You should repeat the test.
Find all posts by this user
Quote this message in a reply
07-07-2011, 03:41 AM
Post: #3
RE: jquery from google or from your domain ?
Also try the http version of the Google ajax-api's hosting instead of https.

Generally it will be more expensive to fetch from a 3rd party because it has to do an extra DNS lookup. There are some benefits that can help mitigate that impact (Google's CDN could have lower latencies to your users, reduces your bandwidth costs and higher liklihood that users will have the shared version cached already) but if you are only serving users locally then odds are that it will be faster to serve the content yourself from the same domain as your page.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-18-2011, 05:20 AM
Post: #4
RE: jquery from google or from your domain ?
(07-07-2011 03:41 AM)pmeenan Wrote:  Also try the http version of the Google ajax-api's hosting instead of https.

Generally it will be more expensive to fetch from a 3rd party because it has to do an extra DNS lookup. There are some benefits that can help mitigate that impact (Google's CDN could have lower latencies to your users, reduces your bandwidth costs and higher liklihood that users will have the shared version cached already) but if you are only serving users locally then odds are that it will be faster to serve the content yourself from the same domain as your page.

Hi Patrick,

What about the theory that its likely someone visiting your site is likely to allready have the google code sitting in their cache.

cheers
Norman
Visit this user's website Find all posts by this user
Quote this message in a reply
08-23-2011, 06:41 AM
Post: #5
RE: jquery from google or from your domain ?
There are varying opinions on that theory. With the number of different versions of each library there is an argument that the chance of a specific version being in the user's cache is not as high as you might hope. If you are using the same version as a LOT of other sites then the liklihood goes up though.
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)