# US 2012/0260111 A1 · Energy Consumption Optimisation for Web Applications

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0260111 A1
- Document ID: US20120260111A1
- Status: Published application
- Kind: A1
- Application number: 13/517,972
- Filed: 2009-12-23
- Published: 2012-10-11
- Earliest claimed: 2009-12-23
- Assignees: Nokia Corporation
- Inventors: Sasu Tarkoma
- Web page: https://patentgrep.com/patent/US20120260111A1

## CPC

- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and related apparatus, the method comprising: detecting, in a device, an event triggering a web resource related to a web page; estimating energy consumption of the event triggering the web resource; comparing the estimated energy consumption to a predetermined value of available energy budget; and in response to the estimated energy consumption exceeding the predetermined value of the available energy budget, indicating the exceeding to the user of the device.

## Claims

### Claim at position 1

1-40. (canceled)

### Claim 41

A method comprising:
detecting, in a device comprising a web application framework, an event triggering a web resource related to a web page;
estimating energy consumption of the event triggering the web resource;
comparing the estimated energy consumption to a predetermined value of available energy budget; and
in response to the estimated energy consumption exceeding the predetermined value of the available energy budget, indicating the exceeding to the user of the device.

### Claim 42 (depends on 41)

The method according to claim 41, the method further comprising:
gathering information about the energy consumption of different web-related activities; and
establishing the energy budget based on the gathered energy consumption information.

### Claim 43 (depends on 41)

The method according to claim 41, the method further comprising:
defining the energy budget re-iteratively based on desired operation time of the device.

### Claim 44 (depends on 41)

The method according to claim 41, the method further comprising:
adjusting the energy budget in accordance with newly gathered energy consumption information of the different web-related activities.

### Claim 45 (depends on 41)

The method according to claim 41, the method further comprising:
estimating the energy consumption as event-based level for each event triggering one or more web sources; and
defining the energy budget for different web resources based on the energy consumption of the events relating to each web resource.

### Claim 46 (depends on 45)

The method according to claim 45, wherein the web pages are structured into nodes according to a document object model tree, the method further comprising:
estimating the energy consumption of event flows within the document object model nodes of the web page.

### Claim 47 (depends on 46)

The method according to claim 46, the method further comprising:
gathering information about used uniform resource locator addresses and consumed and generated events in the event flows within the document object model nodes of the web page;
analysing the energy consumption for said events and uniform resource locator addresses; and
adding energy consumption tags to event objects of said events and uniform resource locator addresses.

### Claim 48 (depends on 41)

The method according to claim 41, the method further comprising:
creating a priority list of web-related activities; and
pausing or stopping one or more web-related activities having lower priority in order to save energy for one or more web-related activities having higher priority.

### Claim 49 (depends on 48)

The method according to claim 48, wherein
the priority list is at least partly created on the basis of the analysis relating to the energy consumption of event flows within the document object model nodes of the web page.

### Claim 50 (depends on 41)

The method according to claim 41, the method further comprising:
indicating the exceeding of the estimated energy consumption over the predetermined value of the available energy budget to the user of the device by displaying a text-based or a graphical notification on the display of the device.

### Claim 51 (depends on 41)

The method according to claim 41, the method further comprising:
indicating the exceeding of the estimated energy consumption over the predetermined value of the available energy budget to the user of the device by displaying in a visual form the expected operation time of the device.

### Claim 52 (depends on 41)

The method according to claim 41, the method further comprising:
in response to the estimated energy consumption exceeding the predetermined value of the available energy budget, prompting the user of the device a possibility to cancel the operation causing the exceeding of the energy consumption.

### Claim 53 (depends on 41)

The method according to claim 41, wherein the device comprises a web application framework supporting dynamic web pages.

### Claim 54

An apparatus comprising at least one processor and at least one memory storing computer program code, wherein the at least one memory and stored computer program code are configured to, with the at least one processor, cause the apparatus to at least:
detect an event triggering a web resource related to a web page;
estimate energy consumption of the event triggering the web resource;
compare the estimated energy consumption to a predetermined value of available energy budget; and
indicate, in response to the estimated energy consumption exceeding the predetermined value of the available energy budget, the exceeding to the user of the apparatus.

### Claim 55 (depends on 54)

The apparatus according to claim 54, wherein the at least one memory and stored computer program code are further configured to, with the at least one processor, cause the apparatus to at least:
gather information about the energy consumption of different web-related activities; and
establish the energy budget based on the gathered energy consumption information.

### Claim 56

A computer program product, stored on a computer readable medium and executable in a data processing device, the computer program product comprising:
a computer program code section for detecting an event triggering a web resource related to a web page;
a computer program code section for estimating energy consumption of the event triggering the web resource;
a computer program code section for comparing the estimated energy consumption to a predetermined value of available energy budget; and
a computer program code section for indicating, in response to the estimated energy consumption exceeding the predetermined value of the available energy budget, the exceeding to a user of the apparatus.

### Claim 57 (depends on 56)

The computer program product according to claim 56, further comprising:
a computer program code section for gathering information about the energy consumption of different web-related activities; and
a computer program code section for establishing the energy budget based on the gathered energy consumption information.

### Claim 58 (depends on 56)

The computer program product according to claim 56, further comprising:
a computer program code section for defining the energy budget re-iteratively based on desired operation time of the apparatus.

### Claim 59 (depends on 56)

The computer program product according to claim 56, further comprising:
a computer program code section for adjusting the energy budget in accordance with newly gathered energy consumption information of the different web-related activities.

### Claim 60

A computer-readable storage medium comprising computer program code, which computer program code, when executed in at least one processor, is configured to cause an apparatus to at least:
detect an event triggering a web resource related to a web page;
estimate energy consumption of the event triggering the web resource;
compare the estimated energy consumption to a predetermined value of available energy budget; and
indicate, in response to the estimated energy consumption exceeding the predetermined value of the available energy budget, the exceeding to the user of the apparatus.
