In the last few months we’ve been working on an “interactive editor” feature for CSS and JavaScript reference pages on MDN. This will show the effect of some JS, or a CSS property, and let the reader edit the code and see the result directly, without having to open an online editor in a new tab.
We’re ready to start beta testing this feature. We’d love it if you gave it a try, and told us what you think.
We’re actually running the beta test mostly as an A/B test. Six pages - three JavaScript and three CSS - are included:
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat
-
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce
-
https://developer.mozilla.org/en-US/docs/Web/CSS/background-color
When a user who’s logged in visits one of these pages, they see the old page. When a non-logged-in user visits one of these pages, they are placed in either the control group “a” or the experiment group “b”, with a 50% probability of each. Users in the control group see the old pages, and users in the experiment group see the new ones, and can play with the editor.
The editor also links to a survey where users can tell us what they think of it.
If you just want to see the new pages, you can force MDN to show you them by including a query parameter in the URL, like this:
If you try out the pages, please let us know. Fill in the survey, tweet us, comment in this Discourse thread, send us a message by carrier pigeon. And thanks for using MDN and helping us make it better!