This is a Markdown representation of a small library that I wrote called Split.js. The ~500 lines of source code is here: https://github.com/nathancahill/Split.js/blob/master/split.js. While the library was an experiment in manually optimizing for file size, this document is an experiment in readable commentary alongside the code. Feel free to leave comments/submit PRs with feedback.
The programming goals of Split.js are to deliver readable, understandable and maintainable code, while at the same time manually optimizing for tiny minified file size, browser compatibility without additional requirements, graceful fallback (IE8 is supported) and very few assumptions about the user's page layout.
Make sure all browsers handle this JS library correctly with ES5.
More information here: [Strict mode - JavaScript | MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScri