I want to use only three methods from the jquery library without importing the whole library in my file, so is there any way to extract only fadeIn(), fadeOut(), load() from jquery?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could look at the source code and try to remove anything not required for the fadeIn and fadeOut methods, but you would likely end up with most of the library.
Overall jQuery is not designed to be taken ala cart, it is designed to be a single small footprint library. If it is not small enough for you needs, you might check out http://zeptojs.com.