A collection of initializers for Squarespace YUI blocks.
After having spent way too much time figuring out how to initialize different blocks in Squarespace projects, this has happened. The primary use-case for these methods is due to asynchronous web app routing and ajax content loading. Obviously, the issue with Squarespace is that when you do this the new content doesn't get any of its blocks initialized. Based on project needs thus far, these are the ones I have figured out. On top of that, I pulled some from this resource by this guy to add as well. I'm excluding the lightbox initializers until I can determine whether or not there is a lighter way to hit those or not. Submissions for others to be added are more than welcome :)
npm install squarespace-yui-block-initializers --save-dev
# CommonJSvar sqs = require( "squarespace-yui-block-initializers" );# ES6 Moduleimport "node_modules/squarespace-yui-block-initializers/sqs";
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)