You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a normal page this works fine, but within binder we cannot wait for the first script to load before firing the second one.
Solutions
Load dependencies outside of the frame
Use other events to tell when things are ready, eg:
<scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/dist/filepond.min.js" ></script><script>console.log("Hit inline script");document.addEventListener("FilePond:loaded",()=>{console.log("FilePond is ready");console.log(window.FilePond);});</script>
Notes
I've tried various things to make this work but no luck.
We grab the HTML response for the frame then go recreate all the script tags so they actually load, but when we add the body to the DOM it seems each script loads async.
The text was updated successfully, but these errors were encountered:
Scripts do not load synchronously.
Basic example:
On a normal page this works fine, but within binder we cannot wait for the first script to load before firing the second one.
Solutions
Notes
I've tried various things to make this work but no luck.
We grab the HTML response for the frame then go recreate all the script tags so they actually load, but when we add the body to the DOM it seems each script loads async.
The text was updated successfully, but these errors were encountered: