Attempt to load try_examples
configuration file only once per page
#240
Labels
bug
Something isn't working
try_examples
configuration file only once per page
#240
Description
On pages where API reference examples to be made interactive are widespread and multiple ones exist, there are a lot of redundant error messages in the console (as noted below).
I'm testing this with scikit-image/scikit-image#7644, and here is an example of a sample page from the preview artifacts: https://output.circle-artifacts.com/output/job/048f37f1-2a97-4826-b310-3c66a77deb9c/artifacts/0/doc/build/html/api/skimage.measure.html
I assume this happens because we run the JavaScript file per iframe, but it would be nice to catch the error on the first iframe and cache it if it's being reported more than once, and check it exists in the console already.
Reproduce
Open the developer console when on the aforementioned link
Expected behavior
That we load and generate an error based on the missing config file just once
Context
Browser Output
The text was updated successfully, but these errors were encountered: