squirrel-labs / ratatosk

Rask is a platformer game built with WASM and Rust
https://rask.rocks
MIT License
15 stars 1 forks source link

Use service workers #121

Open TrueDoctor opened 3 years ago

TrueDoctor commented 3 years ago

https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API Thanks to @AsyncTheory for bringing this to my attention

  1. You can load the page, close it, turn off your internet and open that link again, it should load even when you're offline
  2. If you open the page on a mobile browser, add it to your home screen using a button in your browser and launch it from the home screen, the page will open without the browser UI like a real native app