Do they do the same thing ?
Which one should I use inside client?
if ( Meteor.is_client ) {
Meteor.startup(function () {
// my code here
As far as I can tell, Meteor.startup
(on the client) is very similar to jQuery's $
function. The main advantage of using it is that it's the same API on client and server, so if you want to write startup code in files that are run on both client and server, Meteor.startup
will just work. (Also, I personally find Meteor.startup
to be easier to read and more self-documenting than $
.)