Comments (16)
Something like that would be really nice, but not a must have.
I'd say go for it! 😊
from gitea.
I think such a thing should be inplemented by the browser, not by every website for itstelf.
from gitea.
But currently it isn't implemented by every browser. I don't see anything against this.
from gitea.
- Code complexity
- Some browsers (e. g. Epiphany) already have a progress bar where this will look ugly
- Increased load time
- Some people might not visually like it (like myself)
from gitea.
- Is easy, you add only 2 files and nothing else
<script src="/pace/pace.js"></script>
<link href="/pace/themes/pace-theme-barber-shop.css" rel="stylesheet" />
- I didn't know that have browsers with progress bar
- On my projects, don't have relevant increase load time
- We can put this on vote, the biggest wins.
from gitea.
I don't have a strong opinion on that but generally I don;t think that this is a bad idea. For the people that don't like it it should also be an option to provide a flag to enable/disable it.
from gitea.
what would this progress bar helps with ?
don't get me wrong, it a good idea, i'm just wondering what i would help with in using gitea on a daily driver
from gitea.
Is easy, you add only 2 files and nothing else
Of course you need to take the code inside pace.js and the css file into account. What if there's a security risk inside pace.js?
Btw: You forgot that Gogs can run on a subfolder of a domain, so these two lines already introduce a bug.
On my projects, don't have relevant increase load time
People on mobile connections? Also people with slower PCs? The js file needs to be parced. The progress bar needs to be drawn. It has a glow effect which uses alpha values if I'm not mistaken. This will cause more CPU / GPU load.
You might also try https://addons.mozilla.org/en-US/firefox/addon/progre. Works with Gogs/Gitea. And you can theme it.
from gitea.
Of course you need to take the code inside pace.js and the css file into account. What if there's a security risk inside pace.js?
Any library component for any language can have this risk
People on mobile connections? Also people with slower PCs? The js file needs to be parced. The progress bar needs to be drawn. It has a glow effect which uses alpha values if I'm not mistaken. This will cause more CPU / GPU load.
Yes, both on mobile using 3g and PC's with 1Gb RAM only, work normally.
How do we need the new relase of Gitea, we see other more important things, in future if is necessary, we reopen this.
from gitea.
Please keep enhancements open for not, it's tagged with a future milestone on purpose. If it's closed nobody will ever discuss about it or implement it.
from gitea.
You forgot that Gogs can run on a subfolder of a domain, so these two lines already introduce a bug.
That would've been caught in code-review, no need for nit-picking on pseudo-code in issues 😉
People on mobile connections? Also people with slower PCs? The js file needs to be parced. The progress bar needs to be drawn. It has a glow effect which uses alpha values if I'm not mistaken. This will cause more CPU / GPU load.
Could be disabled in user-settings. Also it works on Edge (GPRS++) without noticeably slowing it down 🙂
from gitea.
That would've been caught in code-review, no need for nit-picking on pseudo-code in issues 😉
Just wanted to point out that there's more to it then initially thought.
Firefox for Android also has a progress bar btw.
from gitea.
Firefox for Android also has a progress bar btw.
Yes I know, this one hi-jacks it 😉
from gitea.
Another browser with a built-in progress-bar: Vivaldi
from gitea.
I will provide this as optional defined on configuration with default disabled, if you want to enable, set this on config
from gitea.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
from gitea.
Related Issues (20)
- frp + nginx reverse proxy + ssl = push 403 HOT 6
- AutoSignIn: permission denied --> HTTP 500 HOT 5
- Gitea reverse proxy authentication problems.
- Sort type Newest for isues/pull request is not working
- Flake test: `TestWorkerPoolQueueWorkerIdleReset` HOT 1
- ENABLE_GZIP activated will result in tar.gz & tgz files compressed 2 times in gzip HOT 3
- comparison api unable to calculate the difference between the commit IDs HOT 1
- Can not create merge commit when checks succeed HOT 1
- Slow response on repo/search
- Automatically restart runner after a crash HOT 2
- Checkbox offset on settings -> application page
- UI border-radius inconsistent problems HOT 1
- Merged/Closed PR should not be approvable or request changes in diff page?
- Job will be frozen when stop the runner after job success
- setup gitea as oauth idP behind nginx sub-path fail HOT 6
- Consider relaxing access constraints on `/api/users/{username}/keys` HOT 3
- Project board column abel visual bug
- New pull request imagediff js error HOT 4
- Pull request search shows merged PRs in Open tab HOT 4
- Reproducible builds and strict dependency verification HOT 13
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 gitea.