Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: Lazy init of disable on click #4879

Merged
merged 8 commits into from
Mar 28, 2023
Merged

Conversation

caalador
Copy link
Contributor

@caalador caalador commented Mar 27, 2023

Description

Only init disable on click
if actually enabled for button.
Move function to buttonFunctions.js
so each button only needs to call the function.

Moving function makes 5000 buttons request
0.5 MB smaller and lazy init to only calll
method for disbleOnClick buttons drops 1MB
from the request.

Only init disable on click
if actually enabled for button.
Move function to buttonFunctions.js
so each button only needs to call the function.

Moving function makes 5000 buttons request
0.5 MB smaller and lazy init to only calll
method for disbleOnClick buttons drops 1MB
from the request.
@caalador caalador requested a review from tomivirkki March 27, 2023 12:06
Only one executeJs should be queued for
multiple calls to initDisableOnClick for
one server roundtrip
@caalador caalador requested a review from tomivirkki March 28, 2023 09:21
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.1.0.alpha2 and is also targeting the upcoming stable 24.1.0 version.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants