-
Notifications
You must be signed in to change notification settings - Fork 24
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: reduce charts initialization time up to ~2x #585
Conversation
b72e591
to
6135ae0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some test are failing on p3 and should pass before merging, otherwise LGTM
71841da
to
abc9bcc
Compare
@@ -136,7 +136,7 @@ | |||
const container = fixture('container'); | |||
const unattachedChart = document.createElement('vaadin-chart'); | |||
unattachedChart.update({title: {text: 'Awesome chart'}}); | |||
setTimeout(() => { | |||
Polymer.RenderStatus.beforeNextRender(chart, () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to replace setTimeout
with beforeNextRender
as otherwise, the test was failing on iOS.
Description
This PR backports the fix introduced in vaadin/web-components#2348 to reduce the charts initialization time up to ~2x.
Type of change
Checklist