Application back button unexpected behavior with jQuery

I have used

<ion-nav-back-button>Back </ion-nav-back-button>
I’m planning to remove jQuery from my application to improve the performance. I have successfully replaced all the functionalities with angular.element.

But the problem is when I remove jquery library, and pressing back button from a page, it is going two pages back in android and iphone. But the hardware back button is working properly.

When I add jquery back in the page there is no problem. I’m wondering what will be the problem.