Commit 7529b3c
Fix Plotly CDN race condition: shared loader with callback queue
Multiple Plotly islands on the same page each tried to load the CDN
script independently, causing race conditions where some plots never
rendered. Now uses a shared queue (window._plotlyQ): first island
loads the CDN, subsequent islands push their draw callback to the
queue. When the CDN loads, all queued draws execute.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d1af853 commit 7529b3c
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments