There's no predefined way to configure at runtime which widgets jquery-ui should publish / activate... they say you should create a custom bundle of jquery-ui that includes only the widgets you need. But we're using the standard WebJar, that provides everything. So the options I see:
use a custom jquery-ui WebJar that includes only the widgets we need in XS; but some extensions may rely on the widgets we drop
or save the value of $.fn.tooltip before jquery-ui loads, and restore it afterward; restoring the value is easy, using the map feature of RequireJS https://requirejs.org/docs/jquery.html#noconflictmap , but for saving the value before jquery-ui load, we'd need a way to run some code before a RequireJS module is loaded. AFAIK this can be done only with a loader plugin, but this means replacing the way you ask for jquery-ui, e.g. 'foo!jquery-ui'; fortunately we could rely on again the map feature to map jquery-ui to foo!jquery-ui for everyone, expect for the special module that restores the $.fn.tooltip
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.