I am currently working on a site that has been created over the years by a variety of contractors and the number of included javascript files has become huge.

The jquery-ui-1.8.14 file is 190 KB and I would like to clean it up and remove unused functions. Does anyone have suggestions for a way to find them? I could delete them one by one and see if it breaks anything, but the site is quite large and I am not sure where all the pages using jQuery UI are...

Thanks in advance.