My meteor app works as expected on the desktop, but has a slow mobile experience due to unnecessary total page refresh when changing routes.
I have tested my application on google dev tools using the "emulate touch screen" option and on a Galaxy S4 in mobile chrome. When I click buttons or links that trigger iron-router to route to a new route, the whole page will refresh instead of the one yield containing a template (i.e the header and footer reloads along with the tags. The whole page). What should happen, and what does happen on the desktop when the "emulate touch screen" option is not active and the buttons and links are clicked is normal behavior with very fast switching of templates in the {{ > yield }}. The rest of the page does not refresh, as expected. I am only aware that when the "emulate touch screen" option is active, first a touch start event is a triggered followed by a click event causing the whole page refresh.
Any ideas on what is causing this and how to fix it?
Some example code is the following:
//makes the button clicked make the page go back
'click .glyphicon-chevron-left' : function(e) {
e.preventDefault();
history.back();
};
// when clicked goes to a preference page
<a id='Preferences' href="{{pathFor 'pref'}}" data-toggle="collapse" data-target=".nav- collapse"> Preferences </a>
Using meteor version 0.9.0.1 with the following packages: insecure standard-app-packages iron-router spin iron-router-progress single-page-login accounts-ui accounts-password animate-css meteor natestrauser:connection-banner mizzao:bootstrap-3
Edit: Error was being caused by a non-package related 3rd party javascript file. Will update further if I can identify the specific cause of the problem.