Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Brave disables Chromium FLoC features. Parent comment
The explainer indicates it's a Promise: "cohort = await document.interestCohort()" -- https://github.com/WICG/floc
One reason to make it async could be to give browsers the option to gate access behind a permissions prompt in some circumstances.
> And undefined would still have to be handled anyway, as browsers without support wouldn't have the attribute at all
Definitely. There are also browsers that are unlikely to add support (ex: Brave, as we're discussing)
There are no comments on this comment yet.
The explainer indicates it's a Promise: "cohort = await document.interestCohort()" -- https://github.com/WICG/floc
One reason to make it async could be to give browsers the option to gate access behind a permissions prompt in some circumstances.
> And undefined would still have to be handled anyway, as browsers without support wouldn't have the attribute at all
Definitely. There are also browsers that are unlikely to add support (ex: Brave, as we're discussing)