HTML snippet model viewer doesnt render

0
I have gotten the following code to render a basic 3d interactive model viewer on various web servers, but for some reason, within the HTML Snippet Widget, I add this… and I can see in the page source that it renders, but the 3d model just doesn’t show up. Can anyone think of anything in Mendix that would prevent this model from showing up. I get no errors in the console.   <script type="module" src="https://unpkg.com/@google/model-viewer/dist/model-viewer.min.js"></script> <script nomodule src="https://unpkg.com/@google/model-viewer/dist/model-viewer-legacy.js"></script> <model-viewer    src="https://modelviewer.dev/shared-assets/models/Astronaut.glb"   alt="A 3D model of an astronaut"   auto-rotate   camera-controls> </model-viewer>
asked
1 answers
0

This probably has to do with laoding of the scripts.

When adding the html in the widget and placing the script tags in the index.html file the image will render, see below:

answered