Charts not appearing on first page load and throwing “google is not defined”
-
I created 16 charts using chartjs library (not google charts) and I added them (by using the shortcodes) in a page. The problem is when I see the page in incognito mode (first load) only the first two of the charts appear but the rest don’t (even when I scroll up and down to them and wait forever – lazyload not activated btw) and an error gets thrown in the console saying “google is not defined” and refers to “render-google.js” script.
However, when I reload the page all charts work fine and no error gets thrown. Additionally, sometimes on the first load of the page (incognito) nothing shows up at all and no error gets thrown. Sometimes all of them work fine even on first load. I’m really confused on what’s going on.
How to share the page url privately in case you need to check it out?
- The topic ‘Charts not appearing on first page load and throwing “google is not defined”’ is closed to new replies.