5 ms·
Another day, another site that's just text and images but for some reason won't work with cookies disabled. I know not allowing arbitrary cookies on my machine
by Etheryte 6y ago
Another day, another site that's just text and images but for some reason won't work with cookies disabled. I know not allowing arbitrary cookies on my machine en masse is my own choice, but I cannot comprehend why a page like this wouldn't work without them.
- obedm 6y agoauthor here. I wasn't aware this was an issue, sorry about that. I'll fix it
- lsalvatore 6y agoIt's cool that you fixed this, but you shouldn't apologize to this person. You published a free article on your own site. This commenter rudely criticized your site for their nontypical edge case without an ounce of respect. They are lucky to have gotten your attention at all.
- vorpalhex 6y agoThere's value in listening to your audience, and it sounds like the author didn't intend for cookies to be required to use the site. I don't think the commenter was being rude either, though it's obvious they're frustrated (understandably). You can choose to cooperate with others or fight them. Usually when we cooperate, things are improved.
- obedm 6y agoThis is my sentiment. I'd feel frustrated as well if I was on their shoes (visited an interesting article, but it didn't work because of something silly). It was also unexpected. I didn't even know localStorage could be broken by disabling cookies haha.
- seattle_spring 6y ago> though it's obvious they're frustrated (understandably) It reminds me of the meme where a guy is riding his bike, inserts a stick into his own wheel while riding, falls over (understandably), and then blames someone else for his fall.
- vorpalhex 6y agoWhen I visit a news site, to read an article, I get a video that scrolls along with me and autoplays. So I disable video autoplay. This breaks some video conferencing apps. It's a choice I have to make - some broken apps or a bunch of annoying websites. Some websites use my cookies and localstorage to track me across properties. They do this so they can harvest my profile data and habits and sell them for profit without my permission. Again, it's a choice and I think it's a fair one to make. As engineers, we don't exist to punish our users for making choices different from ours. That's a great way to end up without any users. We should make their experience as good as we can and give them value. Sometimes that isn't possible - I can't make a video conference app that's immune to blocking autoplay. That doesn't mean we shouldn't try.
- obedm 6y agoI whole-heartedly agree with this. Unless you implement a must-have feature based on localStorage or whatever, your site should still fully (or at least partially) function without it. In my case, I was aghast my blog didn't work without cookies. I don't even have ads running on it, and it's static, it should work on my grandmother's toaster!
- danlugo92 6y agoWhat do you use for cookie blocking?
- Etheryte 6y agoNothing special, I've turned off both first party and third party cookies in the browser settings. I add sites I use regularly to a domain whitelist [1], other than that I don't use much anything for cookies anymore. Historically I also used to use Privacy Badger [2], but with my current setup it isn't really all that relevant. In broader tracking and privacy context, I also use NextDNS [3] and uBlock Origin [4]. [1] chrome://settings/content/cookies?search=cookies [2] https://privacybadger.org/ https://privacybadger.org/ [3] https://nextdns.io/ https://nextdns.io/ [4] https://github.com/gorhill/uBlock https://github.com/gorhill/uBlock
- obedm 6y agoFix incoming . I'm using local storage to maintain the "dark mode" choice and it can't be accessed if cookies are blocked.
- Etheryte 6y agoThanks a lot for the quick update, really appreciate it. Works well now.
- IshKebab 6y agoYou can do dark mode purely in CSS. No need to code an explicit choice in your site.
- mikewhy 6y agoBut the point of coding the choice is ... so the user has a choice? This is a bizarre response.
- mcintyre1994 6y agoI think they mean using CSS `prefers-color-scheme` the user can set a light/dark preference at the browser level and your site doesn't have to have its own implementation. https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
- satvikpendem 6y agoYes but sometimes I want a choice. For example, I use the Dark Reader extension with a pure #000 background. Many dark modes use some grey or other non-black hue, which can be quite annoying, so I usually turn them to light mode and then Dark Reader can properly convert the light theme into my preferred black theme.
- mikewhy 6y agoI'm aware of the prefers-color-scheme stuff added to browsers. AFAICT, only Firefox supports setting it at the browser level, while others will inherit from the system. This would still remove the visitors ability to say "I want THIS SITE to be in light/dark mode", without affecting all other sites / apps on their system. This page could support reading from the browser/OS, while still giving the choice on top of that. Again, this choice was probably implemented ... to give the user a choice.