Chart slow to load

1,503 views
Skip to first unread message

François

unread,
Jan 24, 2018, 5:45:02 AM1/24/18
to Google Visualization API
Hi, a simple chart with few datapoints can take up to 30s to load. The browser is blocked on loading from s2.googleusercontent.com.
How to solve that?

François

unread,
Jan 24, 2018, 6:03:29 AM1/24/18
to Google Visualization API
So, the page displays favicons using src=https://plus.google.com/_/favicon?domain=...' and that is what is slow.
google.charts.setOnLoadCallback(drawChart) is probably waiting for the page to be fully loaded and so the chart is drawn after all favicons are loaded.
Is there a way to have the drawing of the chard fire sooner? 

Sean Larson

unread,
Jan 24, 2018, 12:15:53 PM1/24/18
to Google Visualization API
I believe the onLoadCallback occurs after the google.charts.load() or the other <head> element to load the API are complete. Would placing these before your favicon SRC make a difference? Or store the image locally with the source?

Daniel LaLiberte

unread,
Jan 24, 2018, 12:46:38 PM1/24/18
to Google Visualization API
There is a new setting for the loader which ignores window/document onload:  'ignoreWindowOnLoad'.   It is only available in the 'upcoming' version (46), until it becomes 'current' in a couple weeks.

On Wed, Jan 24, 2018 at 12:15 PM, Sean Larson <industr...@gmail.com> wrote:
I believe the onLoadCallback occurs after the google.charts.load() or the other <head> element to load the API are complete. Would placing these before your favicon SRC make a difference? Or store the image locally with the source?

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/86faad51-345d-4f13-9ade-98a905aa01fc%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

François Mommens

unread,
Jan 25, 2018, 6:00:38 AM1/25/18
to 'Daniel LaLiberte' via Google Visualization API
Great. Is there a way to use the upcoming version already?
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/JJQ90OQrLbM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.

François Mommens

unread,
Jan 25, 2018, 6:29:07 AM1/25/18
to google-visua...@googlegroups.com
Never mind, I found it. And the ignoreWindowOnLoad setting works. Thanks!


On 24/01/2018 18:46, 'Daniel LaLiberte' via Google Visualization API wrote:
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/JJQ90OQrLbM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages