SamohtVII Posted July 31, 2014 Share Posted July 31, 2014 So I have a script src to "http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js". Is there any difference between sourcing the url or saving it to my web space and accessing it from there? What is recommended? Thanks. Link to comment Share on other sites More sharing options...
newseed Posted August 1, 2014 Share Posted August 1, 2014 You can download it and save it on your server if you want. The only drawback (and not really that important) is that you will have to do that each time if you want to keep up to date on changes. Link to comment Share on other sites More sharing options...
SamohtVII Posted August 2, 2014 Author Share Posted August 2, 2014 Is it faster or recommended? Link to comment Share on other sites More sharing options...
Mudsaf Posted August 2, 2014 Share Posted August 2, 2014 Well there is + & - at hosting files at your site.+The file wont get removed any time soon+The load time rely on your server bandwidth. -If the .js code is hosted at Google for example, many users wont have to reload it. (Basically loads the file from cache if it has been loaded somewhere else)-More bandwidth usage on your server. I guess these are things i know. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now