web
web copied to clipboard
Async interactions - fix "hanging" UI during long running actions
Async tasks currently have the tendency of blocking the UI. The also get hibernated by the browser when the tab becomes a background tab.
Needs e.g. web workers / separate threads for:
- copy
- move
- delete (especially in batch)
- upload
Related: we want progress indicators for those interactions, see https://github.com/owncloud/web/issues/6183
~~For whoever works on this: have a look at https://github.com/GoogleChrome/workbox first~~
workbox is unmaintained for 10 months now... doesn't look like a good choice anymore.
Look into https://vueuse.org/core/useWebWorker/ instead.
When a user deletes a large number of files, the web looks like it is hanging.
- dialog "delete files" hangs
- web is disabled while deleting process
- If we click "cancel" button -> deleting process will contunue until all files are deleted
Related: https://github.com/owncloud/web/pull/7902
Related / a very good reason for Web Workers: https://github.com/owncloud/web/issues/10474
Needs research first
Closing in favour of these stories:
- https://github.com/owncloud/web/issues/10951
- https://github.com/owncloud/web/issues/10952
- https://github.com/owncloud/web/issues/10953
A web worker for deleting files has been implemented already via https://github.com/owncloud/web/pull/10916.