So im trying to use some features of materialize like the material box: materializecss.
The jQuery is supposed to load automatically. In the “Initialization” part of that page in the link it shows the jQuery that can be manually added. I tried adding that to the bottom of Meteor.isClient and it also doesnt work. The only way i can get the materialbox feature to work properly is to open the console and enter the the jQuery manually-$('.materialboxed').materialbox();
After that i am able to click on the images and have the materialbox feature work properly. Any idea whats going on here? How can this be fixed?
whenever you have #if or #each or #with in your template, it gets translated into javascript actually generating DOM for you. So if you have jQuery and want it to run on what you think is there, it will most likely fail because at the time when your jQuery fires the DOM is in fact NOT there yet.