should not be shared without permission. More portable Easily make the object available on the window window.Plugin = Plugin; Better organization Logic is outside of the jQuery plugin Better customization Per element options WHY?
should not be shared without permission. Keep plugin functionality outside of jQuery instantiation Don’t be scared of using a lot of methods Namespace events Easy to make functionality available to jQuery plugins and for vanilla JS use SO WHAT HAVE WE LEARNED?
should not be shared without permission. Don’t just haphazardly ﬁre a bunch of JS functions that may or may not be used Come up with a pattern for triggering JS on each page that makes sense for your site WHAT DID WE LEARN?