Trying to use the JavaScript version of OOUI in MediaWiki is extremely heavy. This caused issues for Echo when it tried to use it (T112401) and will probably cause problems in the future. Even lazy-loading is problematic because the progress bars you'd use to indicate that something is being loaded...are also in the giant oojs-ui module.
From mw.loader.inspect() – post-ResourceLoder minification but pre-gzip:
Module | Before | as of wmf.13 |
oojs-ui(-core) | 225KB | 111.7 KiB |
oojs-ui-toolbars | N/A | 35.0 KiB |
oojs-ui-widgets | N/A | 90.6 KiB |
oojs-ui-windows | N/A | 47.5 KiB |
oojs-ui(-core).styles | 89.5KB | 49.3 KiB |
oojs-ui.styles.icons | 129KB | 77.6 KiB |
oojs-ui.styles.indicators | 24.8KB | 15.4 KiB |
oojs-ui.styles.textures | 7.3KB | 4.1 KiB |
This is a tracking bug for ways to make it more lightweight.