void.cat/examples/embed
Kieran 991d8a841d Small changes
- Simplify autoloader
- Update embded example with new autoloader and also update readme
- Basic void_uitl_form downloads
2018-12-07 00:27:47 +08:00
..
embeded.html Small changes 2018-12-07 00:27:47 +08:00
README.md Small changes 2018-12-07 00:27:47 +08:00

Service Worker

Its reccomended to proxy pass the script so any updates are served automatically to your clients like so (Nginx), You can of course host the script yourself aswell.

location /void_auto_loader.js {
    proxy_pass https://v3.void.cat/dist/void_auto_loader.js;
}

Limitations

Currently its not reccomended to embed large resources on any pages as these need to be loaded into ram before decrypting, this service worker is only reccomended for small to medium images that can be downloaded and decrypted quickly.

Keep and eye on this page for an update on this though, in the near future i hope to upgrade to using the new Streams API which would allow streaming of content from the server without the need for buffering in ram.