主权项 |
1. A computer system, comprising:
a memory having computer readable computer instructions; and a processor for executing the computer readable instructions to perform a method comprising: receiving, by a server computer, a request for a web page, the request being sent from a user via a browser; sending, by the server computer, a subset of a plurality of document object model (DOM) elements of the web page to the browser, wherein the sending comprises processing a plurality of asynchronous data requests corresponding to the web page in an order that is based on a DOM loading priority of a DOM tree of the web page; receiving, at the server computer, a user selection of a DOM element of the subset of the plurality of DOM elements of the web page for priority loading after sending the subset of the plurality of DOM elements of the web page to the browser, wherein the selection was made by the user based on the sent subset of the plurality of DOM elements of the web page; reordering, at the server computer, the processing of the remaining asynchronous data requests corresponding to the webpage based on the user selection; sending, by the server computer, the selected DOM element and at least one child of the selected DOM element to the browser based on the reordering; and after sending the selected DOM element and the at least one child of the selected DOM element to the browser, sending all remaining DOM elements of the DOM tree of the web page based on the reordering, such that loading of the web page is completed in the browser based on sending all of the remaining DOM elements. |