I was reading about WebCrypto API lately and read negative view about it [1]. What I understand is that with HTTPS one of the problems is having private key online. In case of break-in someone can just modify served files and now forged files are served. It would be good to have static files signed with separate signing key just for static content. Then private key can be offline and forgery can be easily detected.
Is there something like that in case of offline web apps?
[1] http://tonyarcieri.com/whats-wrong-with-webcrypto