Should I use Meteor.startup() or $(function() {})

Viewed 9430

Do they do the same thing ?

Which one should I use inside client?

if ( Meteor.is_client ) {
    Meteor.startup(function () {
        // my code here
    });
}

or

if ( Meteor.is_client ) {
    $(function() {
        // my code here
    });
}
2 Answers
Related