Skip to content

Commit

Permalink
fix: do not count style tag as proof for loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Mar 8, 2024
1 parent b32a76a commit 6f0945c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/render-google.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ var isResizeRequest = false;
if( chart.library !== 'google' ) {
return;
}

// Bail if the chart is already rendered or is being rendered.
if ( ! window.isResizeRequest && ( $('#' + id).hasClass('visualizer-chart-loaded') || ( 'canvas' !== id && $('#' + id).children( '.loader' ).length > 0 ) ) ) {
if ( ! window.isResizeRequest && ( $('#' + id).hasClass('visualizer-chart-loaded') || ( 'canvas' !== id && $('#' + id).children( ':not(.loader, style)' ).length > 0 ) ) ) {
return;
}
rendered_charts[id] = 'yes';
Expand Down

0 comments on commit 6f0945c

Please sign in to comment.