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
When trying to install a 3rd party widget their boot script never embeds because:
document.readyState will stay in a "loading" status permanently
window.onload will never fire as the status load is never achieved
The workaround currently is to use useEffect to raise an event and modify the 3rd party boot script.
if (document.readyState === "complete") {
l();
} else if (w.attachEvent) {
w.attachEvent("onload", l);
} else {
w.addEventListener("load", l, false);
d.addEventListener('LaunchMe', l); ---This has been added as an extra step
}
Issue summary
When trying to install a 3rd party widget their boot script never embeds because:
document.readyState
will stay in a"loading"
status permanentlywindow.onload
will never fire as the status load is never achievedThe workaround currently is to use
useEffect
to raise an event and modify the 3rd party boot script.It could be linked to this issue but I am doubtful:
#364
@shopify/shopify-app-remix
version:2.0.2
Expected behavior
Embedded app iframe should complete document/window ready/load states correctly
Actual behavior
document.readyState
is permanently"loading"
window
load
never firesSteps to reproduce the problem
The text was updated successfully, but these errors were encountered: