-
Sub-task
-
Resolution: Fixed
-
Critical
-
2.3.2
-
MOODLE_23_STABLE
-
MOODLE_23_STABLE
-
MDL-36023-master -
At present, the chooser dialogue generates M.core.dialogue (Y.overlay) in the setup_chooser_dialogue function. This is called in the child classes initializer even if the chooser is never displayed.
I propose we modify this such that we still call setup_chooser_dialogue from the initializer, but when we actually display the dialogue for the first time, we actually instantiate the dialogue. This should reduce load time further.
It should also make it easier to modify in the future to handle asynchronous loading of the dialogue's contents.