In MediaWiki, jquery.ui is broken down into multiple modules (e.g. jquery.ui.datepicker, jquery.ui.dialog, etc.) so you only need to load the parts of it you need, with a common jquery.ui.core module for shared stuff.
We should do something similar for oojs-ui that lets you load individual widgets as needed, instead of loading everything.