Comments (1)
The getCost()
method returns the maximum cost of an operation. The actual cost may be lower depending on device conditions (charging, screen state), network conditions and, as you say, details of executing the actual operation.
The amount of budget withdrawn when reserving or otherwise using it does depend on these conditions, and has a note at the definition of the concept of reserving budget:
https://wicg.github.io/budget-api/#reserve-budget
from budget-api.
Related Issues (16)
- Available only in a secure context? HOT 2
- [TAG] API Behavior in Private Browsing Mode?
- [TAG] Naming and registry maintainence HOT 1
- [TAG] Link from Spec to Explainer
- [TAG] Per-operation budgets? HOT 1
- [TAG] Error for unsupported operations? HOT 1
- background operation definition is confusing
- getBudget should return a lower bound
- Q: status of proposal HOT 1
- Should we archive? HOT 4
- Budget... maybe qualify the name HOT 3
- Check links...
- Add w3c magic... HOT 1
- Does navigator.budget always return the same object? HOT 1
- The reserve() method goes async too early
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from budget-api.