google-charts-loader.js adds the loader.js script for Charts API eagerly if it does not find google.charts.load symbol. However, when the <google-chart> module and other JS code not using <google-chart> but Google Chart directly are added to the document around the same time, there is a race condition which one adds the loader first. This may result in the following error:
Google Charts loader.js can only be loaded once.
google-charts-loader.js
adds theloader.js
script for Charts API eagerly if it does not findgoogle.charts.load
symbol. However, when the<google-chart>
module and other JS code not using<google-chart>
but Google Chart directly are added to the document around the same time, there is a race condition which one adds the loader first. This may result in the following error: Google Charts loader.js can only be loaded once.