GoogleWebComponents / google-chart

Google Charts API web components
https://www.webcomponents.org/element/@google-web-components/google-chart/elements/google-chart
Apache License 2.0
358 stars 130 forks source link

Workaround for slow initial ready event for tables #254

Closed rslawik closed 5 years ago

rslawik commented 5 years ago

Workaround for slow initial ready event for tables: #252

Google Charts table uses setTimeout loop to wait for CSS before firing the initial ready event. We copy CSS into the shadow root after the ready event, so we need to break the loop to avoid long delay.

See: Table.prototype.waitForCss_ in Google Charts.