damiancds Posted May 24, 2010 Share Posted May 24, 2010 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 More sharing options...
boen_robot Posted May 24, 2010 Share Posted May 24, 2010 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 More sharing options...
damiancds Posted May 25, 2010 Author Share Posted May 25, 2010 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 More sharing options...
GerryH Posted May 25, 2010 Share Posted May 25, 2010 Another thing to consider is that if your user has visited other websites using jquery from the google server, that code will be cached in their browser, so in that case it is faster. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.