Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and apparatus for executing webpage task

A technology for executing tasks and executing devices, applied in the network field, can solve the problems of no concurrent execution, affecting user experience, and low efficiency.

Active Publication Date: 2015-11-18
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF11 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, not only the program is complicated, but also A and B need to be executed sequentially, without concurrent execution, which is inefficient
[0006] 2. The order of asynchronous calls is difficult to guarantee, which is easy to cause system bugs, and bugs are random and difficult to find
[0007] 3. Synchronous calls will lock the page, affecting user experience and inefficiency
[0008] 4. Dependencies cannot be customized
When the front-end business requires a flexible configuration of asynchronous processes, such as using the Ajax callback method to handle the sequence of asynchronous requests, complex control logic is required
The process cannot be modified, let alone flexible configuration

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for executing webpage task
  • Method and apparatus for executing webpage task
  • Method and apparatus for executing webpage task

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0025] see first figure 1 , figure 1 is a flow chart of a method 100 for executing a webpage task according to an embodiment of the present invention. As shown in the figure, the shown method 100 starts at step S110, determining the task relationship of each task in the task queue. Next, in step S120, an executable task in the current state is determined according to the task relationship, and the task is determined as an executable task only when all predecessor tasks of the task have been executed. Finally, in step S130, a task proxy is created for each executable task, and the corresponding executable task is executed through the created task proxy.

[0026] In step S110, first determine the task relationship of each task in the task queue.

[0027] Among them, a task is a combination of code sequences corresponding to operations that n...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method and apparatus for executing a webpage task. The method comprises: determining a task relationship of tasks in a task queue; determining an executable task in a current state according to the task relationship, wherein the task can be determined as the executable task only when all predecessor tasks of the task are executed; and separately creating a task agent for each executable task, and separately executing the corresponding executable tasks by means of the created task agents.

Description

technical field [0001] The present invention relates to network technology, and in particular to a method and device for executing web page tasks. Background technique [0002] As the core technology of Web2.0, Ajax obtains data from the server in an asynchronous manner without refreshing the page. Ajax does not block user requests, improves the page response speed, reduces the pressure on the server, and brings a qualitative leap to the user experience of the Web system. [0003] However, the extensive use of Ajax makes the front-end page code flooded with a large number of asynchronous events, which may be triggered in random order at any time. The problem becomes very complex when business logic requires multiple operations to be kept in a specific order, and those operations depend on multiple asynchronous requests. [0004] When dealing with the asynchronous sequence problem, the existing method adopts the Ajax callback method, that is, when the Ajax request succeeds ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/28
Inventor 宋全旺胡浩马斗常伟尹家彬李涛李雪楠王乐宋腾刘兴瑶
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD