So you say to yourself, I have a plan. Instead of me letting the user click on a link that then goes to the browser and the browser giving me back control when the new page loads, what about implementing that myself?
Instead of letting the browser handle navigation, I will handle navigation, so as to avoid the loss of control. What I’ll do is, I’ll XHR the page off the server, and then I’ll innerHTML it into the current page. You’re getting around the loss of control by handling loading yourself. Don’t trust the browser to do it, do it yourself. Implement it internally.
An excellent post from Stuart Langridge. It excellently sums up the culture of Not Invented Here that permeates the industry of late.