GithubHelp home page GithubHelp logo

Comments (8)

igrigorik avatar igrigorik commented on July 21, 2024

We did discuss the use case of limiting number of consumed bytes — e.g. at most X KB of Javascript — regardless of where they come from (cache or network), which is why we went with "content size".. I'm OK with excluding that use case if we think it's orthogonal and better tackled elsewhere, but want to make sure that we're all on the same page. If memory serves, I think Ojan was interested in this angle.

If we do scope it down.. "Network Policy" is very broad, which may be a good thing, if we want to expand what it controls in the future? Alternatively, perhaps "download policy" is closer to what we're tackling here?

from transfer-size.

jkarlin avatar jkarlin commented on July 21, 2024

@ojanvafai and I discussed this yesterday, he was on board.

I could imagine having a max upload and max download in the end, but starting with max download. What other network policies can we imagine that might fit in here in the future? All resources must use QUIC? Only allow the given certificate?

from transfer-size.

igrigorik avatar igrigorik commented on July 21, 2024

FWIW, QUIC is not policy material.. I doubt you want pages to fail if UDP can't go through. Certificates are already handled by pinning, and not something we should venture into here?

Upload is more interesting and I can see some rationale for that. Although, arguably the user is in control there.. unless the site is doing some malicious, so perhaps that's redundant? I'm a bit worried by "Network" being too broad.

from transfer-size.

jkarlin avatar jkarlin commented on July 21, 2024

Network Usage Policy?
Network Size Policy?

It might be useful to have the broader name. It's unclear to me. We should get feedback from @ojanvafai and others.

from transfer-size.

ojanvafai avatar ojanvafai commented on July 21, 2024

It's unclear to me too. I don't feel strongly.

Another alternative would be DataSizePolicy to match the Save-Data header.

NetworkDataSizePolicy? /me ducks :)

from transfer-size.

igrigorik avatar igrigorik commented on July 21, 2024

Transfer Size Policy? We expose transferSize as part of Resource Timing API, which maps directly what we're discussing here.. I think: https://www.w3.org/TR/resource-timing-2/#dom-performanceresourcetiming-transfersize

from transfer-size.

ojanvafai avatar ojanvafai commented on July 21, 2024

Seems fine to me.

from transfer-size.

jkarlin avatar jkarlin commented on July 21, 2024

TSP works for me as well.

from transfer-size.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.