Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Information about: spa_navigation #280

Open
sukratkashyap opened this issue Oct 24, 2019 · 1 comment
Open

Information about: spa_navigation #280

sukratkashyap opened this issue Oct 24, 2019 · 1 comment

Comments

@sukratkashyap
Copy link

My question is how many times will spa_navigation event will be fired in a SPA app. What I am seeing right now is that spa_navigation is only called once at the spa_hard navigation and then for each spa navigations I am only seeing spa_init event being fired?

@nicjansma
Copy link

@sukratkashyap you're right, it looks like spa_navigation is only being triggered if an onComplete function is used during route_change(), and during all Hard navigations. We can make sure to fire spa_navigation in all cases.

https://github.com/akamai/boomerang/blob/master/plugins/spa.js#L434

The other way would be to detect beacon or before_beacon and look at http.initiator=spa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants