GithubHelp home page GithubHelp logo

Loading progressbar on Gitea about gitea HOT 16 CLOSED

go-gitea avatar go-gitea commented on May 1, 2024 5
Loading progressbar on Gitea

from gitea.

Comments (16)

metalmatze avatar metalmatze commented on May 1, 2024

Something like that would be really nice, but not a must have.
I'd say go for it! 😊

from gitea.

jhasse avatar jhasse commented on May 1, 2024

I think such a thing should be inplemented by the browser, not by every website for itstelf.

from gitea.

metalmatze avatar metalmatze commented on May 1, 2024

But currently it isn't implemented by every browser. I don't see anything against this.

from gitea.

jhasse avatar jhasse commented on May 1, 2024
  • 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.

joubertredrat avatar joubertredrat commented on May 1, 2024
  • 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.

tboerger avatar tboerger commented on May 1, 2024

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.

xinity avatar xinity commented on May 1, 2024

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.

jhasse avatar jhasse commented on May 1, 2024

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.

joubertredrat avatar joubertredrat commented on May 1, 2024

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.

tboerger avatar tboerger commented on May 1, 2024

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.

bkcsoft avatar bkcsoft commented on May 1, 2024

@jhasse

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.

jhasse avatar jhasse commented on May 1, 2024

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.

bkcsoft avatar bkcsoft commented on May 1, 2024

Firefox for Android also has a progress bar btw.

Yes I know, this one hi-jacks it 😉

from gitea.

jhasse avatar jhasse commented on May 1, 2024

Another browser with a built-in progress-bar: Vivaldi

from gitea.

joubertredrat avatar joubertredrat commented on May 1, 2024

I will provide this as optional defined on configuration with default disabled, if you want to enable, set this on config

from gitea.

stale avatar stale commented on May 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.