I have a simple form with jQuery validation, using https://atmospherejs.com/themeteorchef/jquery-validation and autoNumeric: https://github.com/gibson/meteor-autonumeric.
To see the form, you need to be logged in.
Whenever Meteor restarts the local server or when I log in to view the form, then I don’t see any of the jQuery validation nor the autoNumeric input formatting (one of the fields is currency).
In order to “get” the jQuery validation, I need to click to a different route and click back or refresh the page while logged in. Then everything works as it should, jQuery appears, all the front-end validation is working, etc.
I thought it was a loading issue and tried https://themeteorchef.com/snippets/loading-patterns/#tmc-smooth-loading-using-the-onready-callback and the other examples TMC has, but the issue persists.
I apply jQuery via
Does anyone know what could be causing jQuery to not apply on the first render of the template? Why do I need to render it twice?