Conditional region : on shown / hidden

Not sure this is a valid request but… I’m loading a function by conditional region on show. While there’s no output error the element supposed to be rendered is not rendered properly until when I add timeout / delay to the function so I guess that must be something to do with the timing when the event is fired. Probably the on show event is fired too soon before the thing is ready. I noticed there’s on hidden / shown event on Dynamic Collapse so wonder if those can be added to conditional region as well.