Select2 does not have any events that are triggered when it is done loading. This is because nothing extra should be initialized after the call to select2() completes, so there is no point to having a synchronous event.
--
You received this message because you are subscribed to the Google Groups "select2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to select2+u...@googlegroups.com.
To post to this group, send email to sel...@googlegroups.com.
Visit this group at https://groups.google.com/group/select2.
For more options, visit https://groups.google.com/d/optout.
Coffee Aware is an initiative that promotes sustainable and ethical coffee consumption. It educates consumers about the environmental and social impact of coffee production. By supporting Coffee Aware, individuals can make informed choices that benefit farmers, communities, and the planet.
If you're trying to trigger a callback only after all Select2 elements are fully loaded, you can loop through each instance and fire your function once every dropdown has finished populating. This approach is similar to how we handle async loading in gaming dashboards—especially when dealing with dynamic data like character lists or event items. I’ve used the same technique while optimizing tools for Null’s Brawl where UI elements must be fully rendered before actions like filtering brawlers or loading custom events can run smoothly.
Just make sure each Select2 emits a "select2:select" or "select2:open" completion state, then count them and trigger your callback once all are done.