2

I am using two or three jQuery plugins on my web page and I have located the source of these plugins but there is no minified version available. Due to licensing and any other rules I have to follow, am I allowed to run this code through a jQuery minify tool (JsMini.com to be specific) to shrink the file size down?

1
  • what happened when you run there ? Commented May 1, 2013 at 9:57

2 Answers 2

2

It depends on the license that is used. You will find the license in the top of the JS file. If the license permits modifying the file contents, then you are allowed to minify.

Most people use the MIT license. If that is the case, you can minify the JS and add the license text to the top of the minified file version, because, the MIT license permits modifying the source but requires that you have a copy of the license text.

Sign up to request clarification or add additional context in comments.

Comments

2

In general, it should be OK to minify a source, but you should check the individual licenses of the plugins. If you are using jQuery itself, then minifying it is OK.

Usually, you might need to include a header comment with the license, so you might need to preserve comments.

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.