Finding jQuery UI Usage in a Project

Ambrose Little
Software Developer
Published in
1 min readApr 20, 2017

Are you staring at a largish project that you may or may not be familiar with that uses jQuery UI and need to know what exactly of jQuery UI it is using? Maybe you just want to upgrade jQuery UI and know where to focus your testing, or maybe you want to slim down your load file size by including only those features you’re using with a custom build/download.

I had this problem, and I didn’t find any ready solution for it. So I put together a little utility to help. First, I captured the key parts of the jQuery UI API into arrays. Then I used those arrays to build a regular expression that can be used with, e.g., VS Code or egrep or whatever (with some slight tweaking).

Here’s the Fiddle:

Find jQuery UI Usage Regex

Feel free to fork it if it’s not quite to your liking, of course. It’s not the most elegant regex, but it works! :) And you can comment in/out the things you care to search for easily enough.

--

--

Ambrose Little
Software Developer

Experienced software and UX guy. Staff Software Engineer at Built Technologies. 8x Microsoft MVP. Book Author. Husband. Father of 7. Armchair Philosopher.