News for hackers. Stuff that matters.
Re:Purge site data when site identified via old tracking coo... by wtallis on Friday March 06, 2020 @12:33AM (#22501216)
I've found that about half of the sites that render a blank page without JS are just setting style="visibility: hidden" on the <body> element. I cannot think of any good reason for browsers to continue to allow that CSS property to be set on that element. "Flash of unstyled content" is not a valid concern here.
Re:Purge site data when site identified via old tracking coo... by onion2k on Friday March 06, 2020 @02:22AM (#22501620)
"Flash of unstyled content" is not a valid concern here.

Except it really is. Most websites are attached to businesses in some way. If you see statistics that the flash of unstyled content means 10% of your traffic leaves the site after less than a second you do what you can to fix it, and unfortunately that's often hiding everything until it's ready.

Pragmatically, most businesses would give up users who don't like tracking long before they give up users who care about styling, because there are just a lot more people who care about styling. It's an unfortunate fact of web life.

Re:Purge site data when site identified via old tracking coo... by wtallis on Friday March 06, 2020 @03:39AM (#22501938)
> and unfortunately that's often hiding everything until it's ready.

These sites usually aren't successful in that goal. Sure, they may be able to prevent content from showing up until the webfont has been loaded, but in my experience it's still extremely common for content to seriously jump around as the ads continue to load, especially on smaller screens (mobile).

So using "flash of unstyled content" as an excuse just doesn't hold up: users still have to learn to give a site a few extra seconds to settle before it's safe to interact without the content reflowing under your finger to put an ad where you wanted to tap, and breaking accessibility "for the sake of preventing FOUC" is dumb when you still have FOUC.

A similar tactic I've also seen that is even more unjustifiably anti-user is when the <body> element has "overflow: hidden" set until some heinous script that does it's own poor implementation of smooth scrolling can get up and running. These sites are universally improved by blocking such scripts and enabling native scrolling. This is one of the reasons why I believe browsers should be bundling together a large number of permissions that are off by default for every site the user has not flagged as being a web app. Google Maps has a good reason to interfere with scroll behavior; a news article does not.

Re:Purge site data when site identified via old tracking coo... by pjc50 on Friday March 06, 2020 @06:11AM (#22502691)
> flash of unstyled content means 10% of your traffic leaves the site after less than a second

Really?

Why does this happen at all? After all the "visible=false" is a styling..

Re:Purge site data when site identified via old tracking coo... by onion2k on Friday March 06, 2020 @07:20AM (#22503009)
Some people decide whether or not a site is worth looking at extremely quickly - if it looks "old" or "broken" they hit the back button immediately. They will wait for the first paint though, so it can be better to delay anything appearing until everything is ready. The impact depends a lot on demographics.
Re:Purge site data when site identified via old tracking coo... by pjc50 on Friday March 06, 2020 @07:54AM (#22503177)
And the second part - where does the bug lie that this happens at all?
Re:Purge site data when site identified via old tracking coo... by saagarjha on Friday March 06, 2020 @12:34AM (#22501220)
> "Flash of unstyled content" is not a valid concern here.

Well, presumably it is to some people, or they wouldn't be setting it…