Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(trello): optimize render for slow networks #2345

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

askides
Copy link
Contributor

@askides askides commented Oct 4, 2024

Please remember the Contributing Guidelines ❤️

🌟 What does this PR do?

This PR improves the TogglButton render on Trello even in slow networks.

It does still happen sometimes that the button does not appear but only in very slow networks and with the 'Disable Cache' from the dev tools checked (which is not going to be the case 99% of the time).

Tested with network throttling at 3G speed.

🐛 Recommendations for testing

All changes should be tested across Chrome and Firefox.

Ensure that the button is working.

📝 Links to relevant issues or information

See the slack thread here.

@askides askides self-assigned this Oct 4, 2024
@with-shrey
Copy link
Contributor

May be use the mutation observer if its flaky

You can pass comma spperated selectors as last argument to render function
So it will rerender button when for example description is rendered

@askides
Copy link
Contributor Author

askides commented Oct 4, 2024

I will go deeper into how that function works, as it's kinda confusing, I will try an improvement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants