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
@lobau@michaelthatsit - it seems to work all fine if we have users define things in the header after the <script src=mrjs> tag - it seems the reason for the issue was:
even though we can do async etc of mrjs loading in header with mrfoo in a script after <mr-app> is created, the onload function is needed as part of <script src=mrjs> to connect mr-foo to that part of the loading before any of the tag elements are included
so the <mr-foo> tag would be hit since it's not on async or defer, > even if the import script for mrjs and the construction script for > MRFoo have defer in their tag.
doing the onload for <script src="./mr.js" onload="constructMRFoo()"></script> (that was noted in the previous comment) works just because it ties MRFoo's implementation timing to mrjs's timing before the rest of the body gets fully filled out (even though the body is already fully read)
The Fix
to not require that, we just need to do the following to make sure the <mr-foo> html element inside <mr-app> is happy just like everything else:
Related to issue and solution:
Originally posted by @hanbollar in Volumetrics-io/mrjs#619 (comment)
The text was updated successfully, but these errors were encountered: