Giter VIP home page Giter VIP logo

Comments (15)

dakrone avatar dakrone commented on May 20, 2024 1

Sure, this is what I see (apologies if I'm missing something, I'm definitely not a Javascript developer):

Screenshot 2023-12-20 at 9 14 14 AM

from refined-github.

zeertzjq avatar zeertzjq commented on May 20, 2024 1

This issue doesn't happen if the quick-comment-edit feature is disabled.

from refined-github.

MikeMoolenaar avatar MikeMoolenaar commented on May 20, 2024 1

To those using Firefox, can you try using an older version of Refined GitHub? Like from November

quick-comment-edit also caused performance issues, disabling it in the newest version fixed it for me.

Just tried version 23.11.3 released November 3th (with quick-comment-edit enabled) and the performance issues are still there, but much less. At least it doesn't lock up the tab completely...

from refined-github.

fregante avatar fregante commented on May 20, 2024

Can you show what code appears when you click "Debug script"?

Related:

from refined-github.

dakrone avatar dakrone commented on May 20, 2024

@fregante I've added you as a collaborator on https://github.com/dakrone/label-test, where I've manually created 385 labels so far (I got that far before Github started hitting me with errors about rate-limits) there are now 500 labels, and the problem reproduces. In case it's helpful for debugging.

from refined-github.

joostlek avatar joostlek commented on May 20, 2024

Even with quick-comment-edit disabled it can happen, but that's just incidental.

from refined-github.

zeertzjq avatar zeertzjq commented on May 20, 2024

Oh, I checked again, it still happens with quick-comment-edit disabled.

from refined-github.

joostlek avatar joostlek commented on May 20, 2024

I now found out that you have to type slowly for it to work. So I'm guessing there's another reason why this happens. Any way we can deliver debug info of some sorts?

from refined-github.

dakrone avatar dakrone commented on May 20, 2024

@fregante is there a subset of refined-github that I can disable to avoid this in the short-term? I've had to disable it entirely since I do a lot of daily label changes.

from refined-github.

fregante avatar fregante commented on May 20, 2024

That's what I'm trying to figure out. I disabled those 4 features an I still have trouble opening long PRs in Safari.

from refined-github.

joostlek avatar joostlek commented on May 20, 2024

With quick-comment-edit enabled:
image

With quick-comment-edit, locked-issue and wait-for-checks disabled (these 2 are disabled via a hotfix on my normal firefox instance but were enabled in the dev env):
image

The code at quick-comment-edit does say:

	// TODO: Replace with :has selector
	observe(preSelector + '.js-comment.unminimized-comment .js-comment-update', addQuickEditButton, {signal});

Is there maybe a performance reason why it should use :has?

(lol, after posting this issue it seems I still have the quick comment edit button, so I guess disabling a plugin works differently in a dev env)

from refined-github.

JelteF avatar JelteF commented on May 20, 2024

quick-comment-edit definitely causes perf problems in firefox indeed. One very simple way for me to trigger the slowness is resizing the browser window a few times in a row. Once in a while the page will completely freeze and not redraw for multiple seconds.

from refined-github.

fregante avatar fregante commented on May 20, 2024

To those using Firefox, can you try using an older version of Refined GitHub? Like from November

I have a suspicion that the "slow" code is in the CSS, because I can't think of a reason why removeChild would not be instant. I'd consider it a browser bug that affects RG users :(

from refined-github.

joostlek avatar joostlek commented on May 20, 2024

Are there any docs on how to revert to such version?

from refined-github.

fregante avatar fregante commented on May 20, 2024

You can download them from https://addons.mozilla.org/en-US/firefox/addon/refined-github-/versions/

from refined-github.

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.