It'd be neat if we could nest on-load calls. This is currently not working, but I think it should be possible. The problem is that nested MutationObserver events are incorrectly caught, which causes observer nesting to fail. Unlike https://github.com/shama/on-load/pull/19 I suspect we can make this work without even with the currently globals (e.g. the incrementing counter should help us here).
It'd be neat if we could nest
on-load
calls. This is currently not working, but I think it should be possible. The problem is that nestedMutationObserver
events are incorrectly caught, which causes observer nesting to fail. Unlike https://github.com/shama/on-load/pull/19 I suspect we can make this work without even with the currently globals (e.g. the incrementing counter should help us here).cc/ @juliangruber
See also