This link appeared in WDRL 160 on .
Enhancing a comment form: From basic to custom error message to BackgroundSync | justmarkup
Michael Scharnagl explains how you can enhance a basic form ((i.e. a login or comment form) with custom validation, AJAX requests, auto-expansion of a textarea, and, finally, Service Worker and BackgroundSync to store input when a connection is unstable.