Jump to content

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


damiancds
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...