Pros and cons of hosted scripts

Posted by P.Brian.Mackey on Programmers See other posts from Programmers or by P.Brian.Mackey
Published on 2011-06-30T14:29:16Z Indexed on 2012/04/15 5:43 UTC
Read the original article Hit count: 329

Filed under:

I have seen some developers use hosted scripts to link their libraries.

cdn.jquerytools.org is one example.

I have also seen people complain that a hosted script link has been hijacked.

How safe is using hosted scripts in reality? Are the scripts automatically updated? For example, if jQuery 5 goes to 6 do I automatically get version 6 or do I need to update my link?

I also see that Google has a large set of these scripts setup for hosting.

What are the pros and cons?

© Programmers or respective owner

Related posts about jQuery