Khlick / Vizzy

Reveal.js Plugin to load external content.
https://khlick.github.io/Vizzy/tests
MIT License
0 stars 0 forks source link

[BUG] Errors in iframes should be captured #2

Open Khlick opened 1 month ago

Khlick commented 1 month ago

Describe the bug When an iframe loads, for example using d3.js to draw a figure, the preload vizzy mechanism adds the iframe to the DOM temporarily in order to gather the _fragments, or test if the source is a cross-origin frame. When the iframe is added and the src is loaded, errors may occur in the loading iframe due to the unspecified dimensions of the iframe.

Expected behavior Errors that arise during the discovery phase (preload) should be handled, but continued errors in the production phase should be reported.

Environment:

Additional context None

Khlick commented 1 month ago

V1.1.8 seems to mitigate some errors by first injecting the css in the document head prior to preloading vizzy frames.