This version is old school.
Please find jQuery plugins on npm.
jQuery Require
by Remy Blom
jQuery plugin for use with requirejs. Allows you to do $(selector).require([plugin], function() { $(this).plugin; }); With the advantage that it only loads the dependencies when at least one element is selected. Let's $(selector).require()!