How to use Supersized Jquery plugin in Meteor?


I’m trying to figure out what the best practices are in regards to adding Jquery plugins to a Meteor project. The plugin I want to use is this:

I’ve read that I should place the supersized.js file in a client/lib directory. Is this what most people do?

Once I place the .js file somewhere in my project, will I call it inside a Template helper for whichever page I’m trying to use it on?

Many thanks in advance for any pointers in the right direction!


Store supersized.js in your apps client/compatibility directory (see the Special directories section of the Guide for more info). You can then load it via your templates onRendered function - for example:

Template.someTemplate.onRendered(function onRendered() {
    // options ...