Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Restricting the font-display #17

Open
yshrdbrn opened this issue Jan 17, 2019 · 2 comments
Open

Proposal: Restricting the font-display #17

yshrdbrn opened this issue Jan 17, 2019 · 2 comments

Comments

@yshrdbrn
Copy link

I opened this issue here to discuss different aspects of the feature proposed in w3c/webappsec-permissions-policy#269 including the usefulness of it. I am currently working to see if I can get statistical results of how much turning off the feature will affect the layout changes. I will post the results as soon as I have them.

P.S. any suggestion for a better feature name is much appreciated!

@yshrdbrn yshrdbrn changed the title Proposal: Restrict the font-display Proposal: Restricting the font-display Jan 17, 2019
@yshrdbrn
Copy link
Author

yshrdbrn commented Mar 4, 2019

Test Results

Out of about 200 websites that use webfonts, There is about 9.5% improvement in layout stability.
By using the Layout Stability Metric, Each website was given a Jank score.
The improvement is obtained by this formula:

PNE = Jank score when policy not enforced
PE = Jankscore when policy enforced
Percentage improvement = (Σ(PNE) - Σ(PE)) / Σ(PE) *100

Here are the result charts:
bucketchart
individualbarchart

Most improvements happened when the Jank score was in the range (0.1, 0.5). We see 29% improvement in that range.

Data Collection:

Each website was loaded 15 times on a simulated 3G connection with the cache disabled. The median of the samples was collected as the score of each individual website. The test was run locally on one machine (loading one website at a time).

@Malvoz
Copy link

Malvoz commented Aug 24, 2019

I just stumbled upon WICG/interventions#58 - I think a conclusion for that intervention may affect the usefulness of this proposal.

@clelland clelland transferred this issue from w3c/webappsec-permissions-policy Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants