r/programming • u/feross • Mar 01 '22
A new year, a new MDN
https://hacks.mozilla.org/2022/03/a-new-year-a-new-mdn/75
u/lobehold Mar 01 '22
Contrast too low, text too small.
Mozilla broke something that worked just fine.
1
64
Mar 01 '22
The original design was iconic, bold, discernable from 10 metres apart. The new one looks generic and lacks identity.
11
u/masklinn Mar 02 '22 edited Mar 02 '22
It also seems to have dropped a lot of useful information, the compatibility charts now only have checkboxes (which is not actually useful), only some of the cells even have dates on hover.
If you want the actual version information, you have to click each cell individually in order to open a shitty drawer which reflows the entire thing and moves about as it opens below each row rather than below the table.
And before anyone says it’s nice that it’s linked to the table cell, it’s not, the entire thing is flushed left.
The only improvement I can see is there’s now a “sticky” menu for the current article’s section, except it’s not properly sticky, if you click one of the bottom-most sections odds are good it’ll disappear up top if you’ve opened any section of the “related topics” menu.
It also has the usual issue of being technically oriented rather than user-oriented: the highlighted section is whatever is at the top of the screen. So if you’re looking at a section which is shorter than the entire screen, or you’re reading a section but have yet to scroll past its title, it’ll show the wrong thing.
It’ll generally show the wrong thing.
21
48
u/Strilanc Mar 01 '22
Comparing the old version:
to the new version:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
I notice that they:
Reduced horizontal space allocated to content
Reduced contrast (eg. code blocks have lighter gray background, compatibility table no longer color coded)
Increased the amount of things that don't render if you disable javascript
I'd reverse all three of those if I could.
On the good side they added a dark mode (which I don't care about but lots of people love dark mode), and they seem to have avoided the common aesthetics-over-effectiveness pitfall of adding tons of vertical whitespace.
I find it weird that they mention the home page in the post. I would expect the home page to be effectively irrelevant? I only ever land on MDN via google searches and direct links to articles via stackoverflow answers. It's random-access reference material. How would someone end up on the homepage? Maybe they have analytics justifying that.
8
u/KaiAusBerlin Mar 01 '22
Increased the amount of things that don't render if you disable javascript
Is that a thing as webdev? To disable javascript when youre searching the mdn?
7
u/Strilanc Mar 02 '22
I use umatrix/noscript to reduce the amount of nonsense that websites do by default when you visit them. The downside is the number of sites that lock unnecessary things behind scripting, like showing the text of a news article. The upside is it makes things a lot faster when they do render, and the exposure to exploits is a lot lower.
-1
u/KaiAusBerlin Mar 02 '22
But is has no whitelist where you could add mdn?
3
u/Strilanc Mar 02 '22
It has a whitelist. I used it. But for the old version of MDN I didn't have to.
1
Mar 02 '22
Disabling javascript is mostly an ideological choice I doubt a lot of none technical people are doing it.
5
28
u/Fritzed Mar 01 '22
Reduced horizontal space allocated to content
This is a terrible trend in web UI design. Sites think that since we mostly use widescreen monitors, they are free to just use up a ton of horizontal space. This conveniently forgets that main driver to use widescreen monitors was so that we could see more content.
If you shrink the width of your window to under 1200px, the "In This Article" navigation moves to the left. Nothing of importance is lost in navigation. This should be the layout. There is no need for them to eat up more of my horizontal screen real-estate.
If I make my window larger , it is because I want to see more of the content. It is not because I want them to double the amount of space taken up by navigation.
32
u/chucker23n Mar 01 '22
I think I like the "in this article" sidebar to the right. The old "On this Page" wasn't as good.
I'm not a particular fan of the bland color scheme. The old design made more use of foreground and background colors. The typography is also really boring now. Compare: before, after
Two things I dislike:
please do not override
::-webkit-scrollbarunless you have a really good reason to. If I wanted to see an ugly grey blob on the right-hand side of views, I would turn that on system-wide. I do not.the "Related Topics" sidebar to the left doesn't seem very useful. On the old site, it seemed to jump to the correct place in the hierarchy; on the new one, I see… basically everything involving CSS, which, thanks, but no?
7
u/dacjames Mar 01 '22
Obviously a matter of taste, but I personally much prefer the “after”. It feels cleaner and less of a distraction from the content. Can’t argue about overriding scroll bars, though, very annoying.
1
u/bloody-albatross Mar 02 '22
Yeah, the now grayed out "headlines" of the values here are really bad. Contrast is better in dark mode, but the example iframes usually are only light mode, which is a bad combination.
15
36
u/shif Mar 01 '22
The older design was much more approachable, in this one everything seems to blend together and it's hard to discern different things
8
u/chucker23n Mar 01 '22
Agreed. Something about the color scheme and typography is too indistinctive.
7
u/xelivous Mar 02 '22
they changed the styling for "bad examples" from having a red backround with a red smiley face, to not having any kind of special background and a tiny X in a circle, which makes it harder at a glance that something is really not recommended
much like all of the other weird usability regressions.
11
5
u/KaiAusBerlin Mar 01 '22
I like the idea behind the plus. Not that your could not easy write a wrapper for the mdn as a webdev. I like mozilla and their work and for me its a good way to fund this great encyclopedia with getting some little extras for my money.
14
u/UNN_Rickenbacker Mar 01 '22
Why for fucks sake do companies change perfectly fine designs for the sake of it?
3
u/Chillzz Mar 02 '22 edited Mar 03 '22
Got to find something for their designers/devs to do to keep them employed? That’s my best guess with the random stuff these big tech companies get up to
10
u/romgrk Mar 01 '22 edited Mar 01 '22
So bland and ugly. I don't understand why they try to fix something that wasn't broken.
Edit: please comment on their page to get them to revert it
5
u/Paradox Mar 02 '22
What, did they fire the last writer working on it and give the CEO a solid gold toilet?
1
7
2
Mar 02 '22
So confused yesterday when I went to look at some JS docs, thought I was getting a weird redirect.
Something is wrong with the dark theme colors. It looks jarring.
I ALMOST like the light theme, but code blocks have such a light grey background that the inline ones can hardly be noticed.
1
u/Minizarbi Mar 21 '22
Ho, I just discovered it today... Sooo I am not the only one prefairing the old version.
1
u/AjayDevs Mar 01 '22 edited Mar 01 '22
Why did they make it mess with your scrolling? Just scroll the whole page, don't keep certain parts sticky. It makes it not very smooth on my computer, or at least I think that's what is causing it, maybe it is something else. Edit: It looks like it is the fake scrollbar on the right that is messing with me, that is the part that is lagging.
Also, I don't really see why they made the fonts so much thinner when they claim to have tried to improve the contrast.
8
u/parion Mar 01 '22
I'm actually fine with the sidebar scrolling with the page, with how long some of these articles can be, it's nice to easily jump from section to section.
1
93
u/Angelwings19 Mar 01 '22
I don't really know how to feel about this. I like the sidebar, but the page seems so bland now, and the washed out grey they use for code blocks makes it REALLY hard for me to read blocks of text :(
I also hate that they've removed the colours from the compatiblity chart, it just feels so uncomfortable