-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The resource from “https://cdn.jsdelivr.net/npm/plotly.js/dist/plotly.min.js” was blocked due to MIME type (“text/plain”) mismatch (X-Content-Type-Options: nosniff). #3448
Comments
Hi, Martin from jsDelivr here. We removed the size limit for that package so it should load now. |
The issue has already been resolved, and it is already worked now. Thank you very much. |
🙈 thanks @MartinKolarik ! cc @archmoj @alexcjohnson ;) |
Which version(s) of |
@archmoj v2.6.0 went above 100 MB, which is currently our default limit for the cdn. |
Wondering if one could switch to |
Quite possibly, but the main package also seems to include localization support and other dist files, which I'm not sure if are available elsewhere. |
2.6.0 tar listed to be 84.9MB here https://app.circleci.com/pipelines/github/plotly/plotly.js/5855/workflows/6942be6c-f93f-4c8e-a21c-e5b19efc4b4f/jobs/138828?invite=true#step-110-1114 But strangely 2.6.0 size on |
Not sure how the npm cli calculates it but the final version indeed is 107 MB. |
I found the source of this problem. |
Recently, I get this error when using plotly in html. But weirdly enough, it does not happened in all device/browser.

I use this code to embed the html inside my web program:
html = fig.to_html(include_plotlyjs="require", full_html=False, config=config)
Image of the Console Error
The text was updated successfully, but these errors were encountered: