-
-
Notifications
You must be signed in to change notification settings - Fork 78
Request to have more options as CDN for PlotlyViaCDNModule #243
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
Comments
Hello @swetankrathi . I think it's a great feature to be implemented! Feel free to submit a PR with this feature. |
Thanks @andrefarzat! However, after making changes, I am not able to test it as build is not passing. Can you please help me with this error?
|
It's true. Master has this bug. I will look at it |
just pushed a quickfix =) |
Thanks @andrefarzat! However, there are still issues. That theme import error is still there. But I can fix that by disabling the following code in public load(themeName: PlotlyTheme): Promise<any> {
this._isLoading = true;
return new Promise(resolve => {
// import(`./themes/${themeName}.json`).then(data => {
resolve(true);
// this._isLoading = false;
// });
});
} After this, I am able to serve apps without error but I have another error on console. ![]() The above error is on Angular 14 and 16 as well. What am I missing here? |
My bad! The NG0203 error can be fixed by adding I will comment the required code in |
…luding custom CDN.
I'm submitting a ...
Description
A couple of days back, plotly CDN was down for hours, leaving even plotly's website not functional(links below). I have many folks on the community forum requesting solutions. I propose support for other CDNs, such as Cloudflare. In some cases, devs might need to host a custom build of plotly.js, but there is no provision to use a CDN. It would be great if devs could choose either
plotly
,cloudflare
orcustom(pass your URL)
as CDN providers.Current behaviour?
Only plotly's default CDN is an option. If there is any issue with the CDN, the charts don't work.
Expected behaviour?
Devs should have options to choose from multiple CDNs. In case of such events, a custom CDN can also be used to keep applications functional.
Resources/References
Here are some links to the recent incidents:
If devs are aligned, I am happy to submit a PR.
The text was updated successfully, but these errors were encountered: