Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-14 01:28:12 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-02-14 01:36:28 +0300
commit700a7c23a50d999dcfa8af4bbea8478ef35e3622 (patch)
tree6251b21c711139a2fde19746ac512e6937b52204 /.devcontainer/Dockerfile
parentfbbbc2ec3445aa777f56c97a0a383a2e8566be54 (diff)
Speed up fetching of WebDAV folder listing
Before this patch, the WebDAV requests was done once all the scripts are executed and that the DOMContentLoaded is executed. This is an issue because it takes a long time for all the scripts to be run (~900ms). Futhermore, once the request is done the CPU is idle because there is no script anymore to fetch and it's just waiting for the response. This patch makes the script do the WebDAV when executing the script instead of when DOMContentLoaded is executed. This has the advantage that during the WebDAV requests, the browser is not idle but continue executing the other scripts (thanks to the async IO). End result: the file listing is displayed 100ms earlier This also makes sure that the files_sharing scripts are executed earlier than the files scripts as they have event listeners on the files apps. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to '.devcontainer/Dockerfile')
0 files changed, 0 insertions, 0 deletions