What's up with the huge amount of whitespace? This is supposed to be an information dense website, most of the screen is empty white. Not liking this, who designs this stuff? How to revert back, or I just need to add custom styles?
Update: I added custom styles to remove 95% of the extra margins, padding, spacing, line-height, updated h1/h2/h3/h4 header styling, code highlight styling, and it looks 10 times better, I can actually read the information. Unfortunately I still prefer the previous version
Question: Why do these important sites never get actual user feedback before forcing out a major update as a big "surprise" ?
> Why do these important sites never get actual user feedback before forcing out a major update as a big "surprise" ?
The people behind the redesign do so for career, resume & portfolio reasons - they are very unlikely to ever use MDN themselves so they don't care and don't see the problem. You can't rely on user feedback because there's a very high risk users will tell you everything is fine and there's no need for you to mess with anything.
Also interested in the custom styles. Although I like the redesign, it's all over the place typographically – 300 only for h1, 400 for h2 with a slight increase in letter spacing (?!) – but can't be bothered to apply a fix myself.
I'm still working on it. There is a large amount of things to fix. This is the #1 source of web dev information, and from what I can tell they completely screwed it up with this "design update"
It's the same thing as HTTP. Websocket starts off as an HTTP request with cookies, headers etc. Use those just like HTTP to authenticate, and your Websocket server should pass the user data to the websocket object
If you make a normal HTTP request first, the server can issue a standard HTTP cookie to the client. That cookie will then be included when the browser makes the websocket request.
However, websockets are not subject to the same-origin policy, so this exposes you to CSRF [1]. To protect against that, you should check the Origin header on the server side.
I checked out the StackOverflow dark theme, the brown background was too bright for my eyes for a dark theme, but for this HN UI the Comments in the Story views do have a light grey background, so you must be referring to the Main page Story titles on black