SpacingBat3 / WebCord

A Discord and SpaceBar :electron:-based client implemented without Discord API.
MIT License
1.88k stars 94 forks source link

add cache capibility #410

Closed beh-10257 closed 8 months ago

beh-10257 commented 1 year ago

basically people profile pictures gifs everything keeps loading for a while every time I open webcord It would be nice if that information like profile pictures can be cached in .cache/webcord or something since profile pictures are already public information I don't see the problme with that

SpacingBat3 commented 1 year ago

Chromium (and browsers) already caches some content, based on Cache-Control header returned by Discord. I don't think outside of this I'm going to implement anything else, it might not improve the loading times that much, especially when there's ≈1s delay to guarantee splash screen animation is fully displayed. Some slowdowns might also be in Discord itself, when it initializes connection to gateway and executes bunch of JavaScript.

Instead of implementing yet another mechanism of cache, I would check the Cache-Control header behaviour. I also probably improve the loading time in v5 as the splash screen should be a BrowserView if not the Discord page itself.