Hey @klaftertief thanks for sharing this tip. Wow, I never would’ve come up with that. I gave contain
a check on caniuse and it has surprisingly good browser support.
I guess I could even set the contain
to be set only when I’m in dev mode or so.
Another question that popped into my head was this:
Say I have some routing on the page, route A and route B. When I show route A there’s one element
, when i navigate to route B there’s another. Will route A’s debugger still be visible when I’m on route B, since there’s no way to do somehting like app.kill()?
. Or maybe even more generally? What will happen if Elm.ModuleA.init()
is called multiple times as I navigate back and forth? Will new debugger’s be spawned every time?