News for hackers. Stuff that matters.
Re:Introduction to Feature Policy by cimmanom on Wednesday July 04, 2018 @11:00AM (#17457606)
I'm not sure I understand the use case for this. Shouldn't you already have control over what browser features your site uses?
Re:Introduction to Feature Policy by ebidel on Wednesday July 04, 2018 @01:31PM (#17458433)
Yes and no. In some cases (3rd party content that you don't control), there's no way to know what script/iframe is going to do/use. For example, ads script that uses `document.write()` and kills perf.

Turning on certain policies can also help you be certain quality/standards are being met across your site. For example, the creative team forgets to optimize images and you end up shipping many more MBs of images than actually needed. The `image-compression` feature policy could be used as a gut check to make sure that never happens.