Is it possible to prioritize observers callbacks?

I have a problem with observers callbacks execution order. There are ResizeObserver on parent and IntersectionObserver on children in my app. So their behavior is unpredictable and callbacks execute absolutely randomly, as the browser decides. But I need them to execute one after another. Anyway is it possible to set the order of execution at different types of observers?

Source: Ask Javascript Questions

LEAVE A COMMENT