Comments (4)
I think I could try to improve it...
It serves quite important purpose: it is a confirmation that WebCord is indeed loading itself and that stuff is happening. Without that, users would just end up with the empty window, and that indicated dozens of things in the past.
I think I've previously wanted to implement it via BrowserViews so it can be displayed on top of the Discord (right now, I rely on a trick applied in Electron which displays the previous site until the next one declared that it finished to load, which is imperfect in case of Discord, due they do actually load more stuff after that happens), but those were quite buggy... They still might be in fact, although I think I found a workaround to make them render properly.
from webcord.
Also about this:
It adds another unnecessary delay to access the user interface.
This is only partially true, there's a small delay added only for the animation to finish (so this is more a cosmetic thing, to make things looks smoothly)... Although, this wouldn't have to be the case if I could just display the splash screen on top of the Discord page or somehow tinker with Electron so it won't display Discord page too early.
The delay it introduces shouldn't be that bad tho (around 1,5s or less if I remember correctly; I still might take some efforts to entirely eliminate it), WebCord should still load way faster than official Discord client 😛️.
from webcord.
WebCord should still load way faster than official Discord client
I haven't found this to be the case. Discord and Webcord load at about the same time for me, with Webcord being slower to open due to the splash.
from webcord.
I haven't found this to be the case. Discord and Webcord load at about the same time for me, with Webcord being slower to open due to the splash.
I'll probably should re-design the whole loading of the webpages and splash thing, since the whole code and past implementations that were kinda failure (e.g. due to many bugs in the BrowserView
API) are quite outdated given Electron has now quite a number of new APIs that separates content loading to windows and allows for way greater control with that.
I still don't think WebCord loads (or should load) slower, since there's very little tasks done compared to Discord, which is even more complex and modularized to WebCord; unlike to Discord, WebCord doesn't need to wait for updates or check them for multiple components, and it also loads from a single file if you consider app.asar
as such (which could reduce the FS overhead I suppose, at least from what I remember around the reasoning of packing app to it, I think that was mostly pointed out for Windows) while Discord does and implements way more stuff, including native modules.
from webcord.
Related Issues (20)
- UncaughtException: WebCord threw 'SyntaxError' HOT 1
- Webcord RPM package cannot be installed because headers are not signed. HOT 2
- Activites do not load due to the Content Security Policy HOT 3
- Font size
- Webcord crashed, now crashes on startup. HOT 2
- Drag and drop breaks mouse on Wayland HOT 6
- Ctrl+Tab does not work
- Custom CSP configurable by the user HOT 1
- Screen share on Wayland does not work HOT 12
- UncaughtException: WebCord threw 'Error' HOT 1
- Infinite Captcha when logging in via QR Code HOT 4
- config.json gets overridden/replaced with default values on launch HOT 2
- "EIO: i/o error, write" when running the appimage by double clicking, but works fine if ran through the terminal
- Alt menu opening when switching language with Alt + Shift HOT 2
- add `--ozone-platform-hint=auto` to the AUR build script HOT 2
- Maximizing "accept invitation" window crashes the whole program HOT 4
- I can't maximize the window HOT 2
- "You are currently in preview mode. Join this server to start chatting!" what's the fix? HOT 1
- Video codec h265 playback stops at first frame
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcord.