how to remove unused jquery code from jquery library ? 

I am using various jquery libraries for various functions but since jquery libraries are having thousands of lines of code it takes long time to load... so please tell me how to remove unsed code from jquery library...