Is it possible to detect this?
Thank you all for the answers. Unfortunately, I was not able to find a solution, because I have no full control of what is going on the page.
I use setTimeout with 2 seconds to ensure that my code will be executed last, but this is ugly…
So, thank you all, but this is more problem with the system, not the js.