# squarespace-yui-block-initializers

> A collection of initializers for Squarespace YUI blocks.

Latest version **0.1.2** (published 2016-01-07) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install squarespace-yui-block-initializers
pnpm add squarespace-yui-block-initializers
yarn add squarespace-yui-block-initializers
bun add squarespace-yui-block-initializers
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-01-07 |
| First published | 2015-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kitajchuk |

## Links

- npm: https://www.npmjs.com/package/squarespace-yui-block-initializers
- Repository: https://github.com/NodeSquarespace/squarespace-yui-block-initializers
- Homepage: https://github.com/NodeSquarespace/squarespace-yui-block-initializers#readme
- Issues: https://github.com/NodeSquarespace/squarespace-yui-block-initializers/issues
- npm.io page: https://npm.io/package/squarespace-yui-block-initializers

## Recent versions

- 0.1.2 (latest) — 2016-01-07
- 0.1.1 — 2015-08-11
- 0.1.0 — 2015-08-11

## README

squarespace-yui-block-initializers
==================================

> A collection of initializers for Squarespace YUI blocks.



## About
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](http://answers.squarespace.com/questions/44007/how-to-initialize-ajax-loaded-content) by [this guy](http://answers.squarespace.com/users/15278/michaeleparkour/) 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 :)



### Installation
```shell
npm install squarespace-yui-block-initializers --save-dev
```


### Usage
```
# CommonJS
var sqs = require( "squarespace-yui-block-initializers" );

# ES6 Module
import "node_modules/squarespace-yui-block-initializers/sqs";
```



### Methods
- initVideo()
- initAudio()
- initCommerce()
- initImages()
- initGallery()
- initMap()
- trackPage( id )



### Pull Requests
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

---
_Source: https://npm.io/package/squarespace-yui-block-initializers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
