I haven’t documented Kamishibai.js, and at this point, it’s not even an independent library. Still, I just wanted to note a few things that crossed my mind recently.
A well written slide stack by Nicholas C. Zakas.
The answer in my opinion is no. Not nearly. Kamishibai.js is less than 50KB minified without HTML templates. It is smaller than the jquery.min.js file.
Written by David Heinemeir Hansson on the Signal v. Noise blog.
- Form is submitted via a XMLHttpRequest-powered form.
- Server creates or updates a model object.
I totally agree to this approach. In Kamishibai.js, we extend it in the following ways;
Another extension is the use of JSON. We totally agree that returning HTML is better than JSON if performance or readability of your code is your main issue. However in Kamishibai, we cache responses in localStorage which is very limited in capacity. Since JSON can be made many times more compact than HTML, we use JSON for the responses that we need to store a lot in localStorage.
I hope to write more on Kamishibai.js in the future.