Git Product home page Git Product logo

budget-api's People

Contributors

beverloo avatar foolip avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

budget-api's Issues

[TAG] Naming and registry maintainence

From TAG feedback issue

Some operation names are common with the Permissions API. It'd be great to understsand how these will be maintained and kept in sync as new operations are added. Should the TAG be assisting?

Are there going to be operations that will be budget-able but wouldn't also be introspectable via the Permissions API? As registries are an open problem for web specs, we'll ping back when we come up with a solution.

[TAG] Per-operation budgets?

From TAG feedback issue

getBudget() appears to be global and not a per-operation-type budget. Have you consulted with other browsers to ensure that this is a reasonable design choice for their implementations? This has been a source of difficulty for storage quota in the past.

Check links...

Might not be an issue, but just double check the links in the various documents. I just fixed the one in the readme that was pointing back to your gh account.

[TAG] Uniform Weights Per Operation?

From TAG feedback issue

@triblondon notes that the model the API presents weights all silent pushes (e.g.) to be equal. Do we have confidence that this will always be true? Has a model been considered in which the developer requests some budget for an operation and is then limited to that budget (e.g., execution time)?

Available only in a secure context?

Because this API relates to the ability to do work in the background, which is considered a privilege, functionality provided by this API is only available in a secure context.

I don't think this API itself should be limited to use in secure contexts. It would make more sense if you weren't in a secure context that the API exists but reports that there was no available budget for a particular action requiring a secure context.

Budget... maybe qualify the name

Sorry, this is bikeshedding, but we talk a lot about "budget" on the web... like:
https://timkadlec.com/2014/11/performance-budget-metrics/

And with the Web Payments API starting to ship, there might be some confusion about what this API is about. I've had my head in Web Payments for the last week, so I instantly thought "wait? what? budget for payments?" ๐Ÿค‘

It might be good to qualify the name somehow.

getBudget should return a lower bound

getBudget should be documented as returning the amount of budget that there is expected to be assuming the user doesn't interact with the site at all in the meantime (i.e. a weak lower bound, though it's possible the budget will go below the prediction if e.g. the user revokes a permission for the website).

Otherwise UAs can't make reasonable predictions, and getBudget would be less actionable for developers.

background operation definition is confusing

Currently it says:

A background operation is the ability for an origin to execute potentially resource consuming code in the background.

I think the definition should explain what a background operation is and maybe list some examples. This feels like it's instead defining a background operation budget. Specifically I don't think a background action is an ability but it's a concrete action where as a budget would measure the ability to perform actions.

I found it difficult to understand the spec the first time around because this definition is the underpinning of the specification but it doesn't really explain what a background operation is. I was wondering if we were including any events (input, timeout, request animation frames) and if they were measure by count, cpu time, wall time.

Add w3c magic...

Adding this to the W3C IRP manager... Some new files will appear in the gh-pages branch.

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.