PROCESSING USER INPUT EVENTS IN A WEB BROWSER
First Claim
1. A method, comprising:
- in response to a user event received for a target element in a webpage, concurrently dispatching the user event for processing in a main thread and a secondary thread;
processing the user event in the main thread using an event handler associated with said target element;
processing the user event in the secondary thread using a default handling action defined for the webpage; and
rendering the webpage for display by a first one of the main thread and the secondary thread upon said first one of the main thread and the secondary thread completing said processing of the user event.
6 Assignments
0 Petitions
Accused Products
Abstract
A method and computing device are provided for processing user events received via a user interface, such as a touchscreen, in multiple threads. When a user event is received for a target element in a webpage, the user event is dispatched to both a main browser thread and a secondary thread. The secondary thread processes user events in accordance with established default actions defined within the browser, while the main thread processes the user events in accordance with any event handlers defined for that target element. The main thread processing may be delayed by other interleaved task, and the secondary thread may be given priority over the main thread. When the secondary thread completes processing, an updated webpage is displayed. When the main thread subsequently completes processing, its updated rendering of the webpage is displayed. The secondary thread thus provides an early user interface response to the user event.
-
Citations
14 Claims
-
1. A method, comprising:
-
in response to a user event received for a target element in a webpage, concurrently dispatching the user event for processing in a main thread and a secondary thread; processing the user event in the main thread using an event handler associated with said target element; processing the user event in the secondary thread using a default handling action defined for the webpage; and rendering the webpage for display by a first one of the main thread and the secondary thread upon said first one of the main thread and the secondary thread completing said processing of the user event. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
-
Specification