How to get around DOMContentLoaded for navigation?

Hmmm … I’m not sure it guarantees the DOM content has loaded, I believe it fires on the Route change, which is much earlier.

You’d need to consider attaching a Component to a Plugin Outlet and firing on didInsert modifier if the DOM loading is important.

If just the Route change is important, then yes, onPageChange should do it :+1:

1 Like