stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.26k stars 893 forks source link

jsdelivr cdn fallback #360

Closed accomazzo closed 1 year ago

accomazzo commented 6 years ago

I work at a large enterprise which is blocking the cdn.jsdelivr.net domain. Specifically cdn.jsdelivr.net/npm/monaco-editor@0.10.1/min/vs/loader.js is blocked which breaks the functionality of the stackblitz editor. This issue is probably not unique to my organization. I'd like to suggest a fallback or alternative for loading this script. Thank you.

yenoh2 commented 6 years ago

I am experiencing the same issue. Several other domains would work. Would it be possible to use any of these?
https://microsoft.github.io/monaco-editor/node_modules/monaco-editor/min/vs/loader.js https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.10.1/min/vs/editor/editor.main.js https://unpkg.com/monaco-editor@0.10.1/min/vs/loader.js

MartinKolarik commented 6 years ago

Do you guys happen to know what website blocking solution/software is used by your organization?

yenoh2 commented 6 years ago

Unfortunately, I'm not able to provide that information.

On Wed, Jul 18, 2018 at 4:05 PM Martin Kolárik notifications@github.com wrote:

Do you guys happen to know what website blocking solution/software is used by your organization?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stackblitz/core/issues/360#issuecomment-405942999, or mute the thread https://github.com/notifications/unsubscribe-auth/AWduHb51dmM0H8z4yB45NQRxphm4FX2Zks5uH0ClgaJpZM4S3gFB .

jyarbro commented 6 years ago

https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.10.1/min/vs/editor/editor.main.js

This path makes the most sense as stackblitz is already using this for these other files, so there's the highest chance of getting either a complete experience or a failed experience. The current setup results in a partial experience that leads the user to think things are fine until you try to tell Angular to generate a new X, and then only in dev tools does it show that the monaco editor failed to load.

<link href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/6.0.0/normalize.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.5.0/introjs.min.css" rel="stylesheet">
github-actions[bot] commented 1 year ago

Apologies that we were unable to address this issue in a timely manner!

Given that we have millions of free users this has been a challenge, and we are working to improve over time. As part of an effort to focus on driving the most recent issues to resolution, this issue is being closed.

If this issue is still meaningful, please comment with an update and re-open the issue for troubleshooting! Thanks for your continued loyalty to the StackBlitz platform over the years!