Skip to content

Commit 8a0dfcb

Browse files
fix: add chart rendering delay
1 parent b94b1c9 commit 8a0dfcb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/render-facade.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ var vizClipboard1=null;
132132
$('div.visualizer-front:not(.viz-facade-loaded):not(.visualizer-lazy):not(.visualizer-cw-error):empty').each(function(index, element){
133133
if ( $(element).is(':visible') ) {
134134
var id = $(element).addClass('viz-facade-loaded').attr('id');
135-
showChart(id);
135+
setTimeout(function(){
136+
// Add a short delay between each chart to avoid overloading the browser event loop.
137+
showChart(id);
138+
}, ( index + 1 ) * 100);
136139
}
137140
});
138141

0 commit comments

Comments
 (0)