主权项 |
1. A method for dynamically modifying a requested web page from a server for presentation at a client, comprising:
(a) receiving, by an intermediary between a client and a server, a request from the client for a web page of the server; (b) transmitting, by the intermediary responsive to the request, a first fragment of the web page to include in a modified web page for presentation at the client, the first fragment based on cached data corresponding to a static portion of the web page; (c) transmitting, by the intermediary, a second fragment of the web page to the client to include in the modified web page, the second fragment comprising a dynamic portion of the web page provided by the server in response to the request; and (d) incorporating, by the intermediary, code into at least one of the first fragment and the second fragment prior to transmission to the client, the code, when executed on the client as the corresponding fragment in the modified web page is presented to a user of the client, dynamically performs a predefined action without intervention by the user, to control loading or visibility of a resource on the modified web page to improve the user's experience over that from the requested web page, the predefined action of the code for the resource specified via a configuration of the intermediary. |