1

VS Web sites/projects come loaded with several .js files, most of which I don't use (e.g., I use a CDN for newer versions of jQuery and jQuery-UI). I know it's safe to remove these unneeded .js files from my projects, but is there any benefit from doing so? Are they deployed to the web server if left alone?

3
  • 7
    I would say that, in general, removing unused files certainly improves comprehensibility for future maintainers of the code.
    – apsillers
    Commented Jun 19, 2013 at 18:11
  • 3
    Also good for security - a classic attack vector is through old versions.
    – K.Steff
    Commented Jun 19, 2013 at 18:17
  • 1
    Yes. If you're using Visual Studio with a "Web Site" they're deployed when using WebDeploy. Also, the more important aspect here is what apsillers said. Commented Jun 19, 2013 at 18:30

1 Answer 1

-2

yes, it's take time to load and cause to reduce the performance , other way to reduce it you can compile multiple js files in to one.please refer https://developers.google.com/speed/articles/compressing-javascript http://closure-compiler.appspot.com/home

1
  • 1
    would you mind explaining more on what it does and why do you recommend it as answering the question asked? "Link-only answers" are not quite welcome at Stack Exchange
    – gnat
    Commented Oct 31, 2013 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.