Live data from Hacker News

Things you can do with a browser in 2020

github.com

11–20 of 387 posts

Re: Things you can do with a browser in 2020

#11
post #6

Worth noting is that "prefers-color-scheme" works in all major OSes at this point, mobile and desktop. If your site already has a dark theme, there is no reason at all not to be integrating it this way. Even if you don't have a dark theme already, it's a huge value-add..... (@dang?)

Yes, it's such an obscure feature that many of the people who enable it don't even realize it... Ever since I added dark mode to gwern.net, I've been getting or seeing complaints about how my website is broken or 'defaults to black-on-white' (it doesn't). :(

Re: Things you can do with a browser in 2020

#13
post #7
post #2

Suggestion: add a rough indicator of what platforms support each feature. You could link to the relevant page on https://caniuse.com/ but even a very quick "Supported: Mobile Safari, Chrome on Desktop" sentence next to each one would be enormously useful.

Each link already goes to MDN, which has its own rough chart of browser support

I clicked the Web Credentials link, and was disappointed to be redirected to google's docs :P

https://developer.mozilla.org/en-US/docs/Web/API/Credential_...

Re: Things you can do with a browser in 2020

#14
post #7

Earlier quoted context omitted.

Each link already goes to MDN, which has its own rough chart of browser support

I clicked the Web Credentials link, and was disappointed to be redirected to google's docs :P https://developer.mozilla.org/en-US/docs/Web/API/Credential_...

Ah. Well at least some of them go to MDN...

Re: Things you can do with a browser in 2020

#15
This is a great list some of these APIs look pretty interesting and didn't know about them this is a great list.

Push notifications are becoming an irritation mainly because of their overuse. The number of sites where you go to them to have a look at one piece of information and you have to tell them no to push notifications is becoming quite an annoyance.

Re: Things you can do with a browser in 2020

#16
post #11
post #6

Worth noting is that "prefers-color-scheme" works in all major OSes at this point, mobile and desktop. If your site already has a dark theme, there is no reason at all not to be integrating it this way. Even if you don't have a dark theme already, it's a huge value-add..... (@dang?)

Yes, it's such an obscure feature that many of the people who enable it don't even realize it... Ever since I added dark mode to gwern.net, I've been getting or seeing complaints about how my website is broken or 'defaults to black-on-white' (it doesn't). :(

Huh... It's weird to me that someone who has that enabled on their OS (even if they didn't realize it) would be upset about it on a website.

Re: Things you can do with a browser in 2020

#18
post #6

Worth noting is that "prefers-color-scheme" works in all major OSes at this point, mobile and desktop. If your site already has a dark theme, there is no reason at all not to be integrating it this way. Even if you don't have a dark theme already, it's a huge value-add..... (@dang?)

It's funny to me that dark themes seem to be the preferred theme type in online discussions, because in practice, most people I know prefer a light theme on a monitor set to high contrast and relatively low brightness in a well lit setting. I too prefer that, as it seems to reduce (eliminate?) my eyestrain after hours on the computer.

Re: Things you can do with a browser in 2020

#20

Who seriously thought the Battery Status API was a good idea? Someone thought this was useful enough to write a spec for it...

I suppose you're doing what might be a resource intensive task and want to be sure you don't kill the battery.

Granted I get folks might feel a rando website that is resource intensive would be horrific, but maybe we're talking about some specific web app / use case.

Post reply on HN