-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
OWD project: Fix how MDN distributes Polyfills #27
Comments
Thinking aloud, would it make sense to have a curated list of polyfills be part of BCD? It's the sort of data the feels related in terms of helping developers figure out if and how they can use a feature, and the BCD repo could host a curation process based on some of the criteria, documenting some the pitfalls? |
Personally, I head over to https://polyfill.io/v3/ by @Financial-Times if I need a polyfill for something. Modernizr could be considered another trusted source. Is this issue also about Ponyfills? https://github.com/sindresorhus/ponyfill#how-are-ponyfills-better-than-polyfills |
I think having Polyfills with the "Browser compatibility" section (i.e. the compat table) makes sense. That's probably where readers usually care and look for solutions. Having BCD curate Polyfills is also a good idea since the BCD community knows a lot about compat already. Another project to talk to is https://github.com/zloirock/core-js. It also offers a lot of polyfills and is widely used. I think there is consensus we don't want Polyfill code to be shown on MDN docs (or even be hosted inline) anymore because it adds no value. We should think about what we want instead:
|
My two bits:
|
Yes, I also think we shouldn't host them, only link (directly or via structured data in front-runner, in mdn/browser-compat-data, elsewhere). We discussed this project yesterday. To move it forward, we need a few decisions. I opened: mdn/content#7841 to decide for what features do we want to have polyfills. This decision will already help us to clean what we have (and then to make a useful inventory of the situation) |
A recent discussion on this topic happened here: https://github.com/orgs/mdn/discussions/140 The outcome is to create a yaml front-matter key on MDN pages called A draft implementation is at mdn/yari#6902 |
FYI this came up in OWD SC meeting today. @estelle Wanted to know if
The broad feeling was that core.js was a kind of defacto standard. Also that polyfills are good when you only have one browser implementation, but not when there is broad implementation because people shouldn't be loading these unless they are needed. Policy might be something like "remove when in all current browsers" |
What is the status of this? |
This is on hold. |
|
I'm closing this as not planned for the moment. We've tried multiple times to get something implemented. We're happy to help with this in case anyone wants our thoughts and feedback on this project idea but I don't see us picking up mdn/yari#6902 or related discussions in the near future. |
This project proposes that we work on fixing how MDN distributes Polyfills.
Originally proposed in the MDN discourse https://discourse.mozilla.org/t/mdn-rfc-001-mdn-wiki-pages-shouldnt-be-a-distributor-of-polyfills/24500 but never rolled out, because the MDN wiki didn't really allow to make mass changes. This is now much more approachable with MDN in git.
Problem statement
MDN reference pages often contain large code blocks of Polyfills. This is bad for a few reasons.
Priority assessment
This table checks this project against the OWD prioritization criteria.
Proposed solutions
Task list
More information
Open Web Docs (OWD) is a non-profit collective funded by corporate and individual donations.
In order for this project to happen, please consider donating to OWD on https://opencollective.com/open-web-docs.
For more information on sponsorship and membership tiers, see https://openwebdocs.org/membership/
More information is available at https://openwebdocs.org.
For questions, please reach out to [email protected].
The text was updated successfully, but these errors were encountered: