mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.14k stars 22.46k forks source link

Remove jsfiddle/jsbin/codepen links #16120

Open wbamberg opened 2 years ago

wbamberg commented 2 years ago

We'd prefer not to have JSFiddle links on MDN because it's hard for us to maintain this content.

Here's a list of all the places we're linking to JSFidddles (I think). Ideally, we would replace there with live samples. Note that many of them are in the Games area - I'm not sure if it's worth investing the time to remove these ones..

Codepens:

JSBins:

teoli2003 commented 2 years ago

In https://developer.mozilla.org/en-US/docs/web/api/datatransfer/files, there is also a link to JSbin. Should we add the links to JSbin to this issue too, it is the same problem? (I found only 3 occurrences):

(For games/ I think we shouldn't do it ourselves but be ready to review contributions. Even if the section goes away at some point, I guess it will be archived, and having everything embedded will be better than having JSfiddle links that will go away at some point...)

wbamberg commented 2 years ago

There's CodePen as well. I just searched for JSFiddle here but we could add it.

teoli2003 commented 2 years ago

Codepens:

OnkarRuikar commented 2 years ago

We can close #13483 after https://developer.mozilla.org/en-US/docs/Web/API/Element/animate is done.

Rumyra commented 2 years ago

One thing I would say is we need to take a bit more time to consider what we do with the bigger examples (those that wouldn't work as live samples - largely I think the codepens) purely because it's useful for our users to have an interactive editor and we still need to figure out one that can be powered from github 👍

wbamberg commented 2 years ago

Yes, maybe I was a bit premature here. Hopefully there are lots of cases where a live sample is good enough, and we can keep using these links, for now, for the other cases.