htmlpreview / htmlpreview.github.com

HTML Preview for GitHub Repositories

Home Page:htmlpreview.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about previewing html that has javascript modules

GitHubDragonFly opened this issue · comments

I am currently using this htmlpreview in my HTML_CSS_JS_Flask project and am happy with the preview.

A question, for anybody who might know, is whether they had any success in previewing html pages that include js script marked as type="module"?

The above mentioned project has GLTF and DAE viewers, using three.js, and they do work in the preview but cannot process the js module for a particular texture loading.

Just by looking at the code of the htmlpreview.js, it removes the attribute type and doesn't really check for a different script type in order to re-assign it.