Is it possible to move loading of Select2 to the dialog, not the plugin itself?
In my case users need this plugin quite rarely, so for the most cases downloading of about 100 Kilos of unused CSS and JS code is redundant.
I don't know if it's possible here, but I've found an example of loading extra scripts inside "dialog.js" for example here: https://github.com/ranelpadon/ckeditor-leaflet/blob/master/dialogs/leaflet.js (lines 53-60)
Is it possible to move loading of Select2 to the dialog, not the plugin itself? In my case users need this plugin quite rarely, so for the most cases downloading of about 100 Kilos of unused CSS and JS code is redundant. I don't know if it's possible here, but I've found an example of loading extra scripts inside "dialog.js" for example here: https://github.com/ranelpadon/ckeditor-leaflet/blob/master/dialogs/leaflet.js (lines 53-60)