Jump to content

Is it faster to request on your own server rather than somewhere else?


damiancds

Recommended Posts

I've been looking a scripts to tackle a few things, and on one of them, I'm requesting http://ajax.googleapis.com/ajax/libs/jquer...2/jquery.min.jsI was curious if it would be faster if that particular file was within my directories instead of on the ajax.googleapis.com site. It would also be helpful if what I'm talking about is even legal,thanks,

Link to comment
Share on other sites

It's always another network request. If the remote server is closer to the client, it will be faster for them. If your site is closer, to the client it will seem slower.

Link to comment
Share on other sites

So, basically there's no way to know which will be faster, it will always depend on the individual user. (I doubt there's a way to grab the user's location, the servers location, and do the math, let alone if it's even worth trying)thanks, I might just copy the file over, that way I won't be dependent on another site, in case it goes down for whatever reason.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...