• Navigation and interaction – Interpreting touches is a subtle art • Offline use – Just reinvent the whole way the web works • Rethink backend architecture – Fewer pages, more APIs • Analytics – Record activity while user is offline
all or none – Boot page, fonts, sprites, splash screen, icons only. • Webkit manifest bug – obscure naming of the manifest helps • Set dynamic comment in manifest for dev
use UTF-16 text • That’s a minimum 2 bytes per character • Pack ASCII into (pretend) UTF-16: if (in.length % 2 !== 0) in += ' '; for (i = 0, l = in.length; i < l; i+=2) { out += String.fromCharCode( (in.charCodeAt(i)*256) + string.charCodeAt(i+1) ); }