How to run functions in meteor that is the equivalent of document.ready()

HI,

I’m new to Meteor and I was having trouble figuring out how to run a function at document.ready() in Meteor. Specifically I’m trying to call $(“parallax”).parallax() when the page loads so that the parallax component from Materialize would work. I’ve tried calling it in Template.paralla.onRendered() but it does not get called. I would have to manually call it in the console for it to work. Is there a section in the tutorial that I should look at to gain a better understanding for this (perhaps routing) ?

Thank you,

in the reactive world document.ready() has no meaning, as the page goes through many ready states.