In Meteor application's client folder I created js file which manipulates my template (client/index.html). It works fine when I run application locally in a browser. But when I deploy it to mobile phone my script does not work. Then I added console.log statements to my template and script and found that load order is different. In local browser it prints:
loading template
loading javascript
But in mobile phone it prints other way around:
loading javascript
loading template
Meteor documentation states that "HTML template files are always loaded before everything else". So why it is not true when I deploy my application to mobile phone?