On-the-fly rewriting of uniform resource locators in a web-page
AssigneeAppcelerator, Inc.
InventorsPaul Colton, Uri Sarid, Kevin Edward Lindsey
Life of this patent
Estimating the term…
Abstract
A system and method for on-the-fly rewriting of a plurality of URLs in a Web-page is disclosed herein. On a server-side, the present invention analyzes a plurality of hyperlinks of the Web-page and optimizes the plurality of hyperlinks of the Web-page to generate an optimized Web-page, which is then transmitted to a client-side.
Claims18
A method for on-the-fly rewriting of a plurality of URLs in a webpage, the method comprising:
- receiving a request for a webpage from a client-side of a network;
- retrieving the webpage at a server-side of the network, the webpage comprising a plurality of hyperlinks, an original code that includes code that is tagged to be performed by the client-side, and one or more functions set to run at the server-side;
- analyzing the plurality of hyperlinks of the webpage at the server-side, wherein the analyzing comprises parsing the webpage at the server-side:
- optimizing the plurality of hyperlinks of the webpage without affecting the original code of the webpage to generate an optimized webpage at the server-side;
- identifying a first function of the one or more functions that is set to run at the server-side and also set to run at the client-side and not stripping the code of the first function;
- stripping code from at least one of the one or more functions set to run at the server-side and not also set to run at the client-side;
- transmitting the optimized webpage with the original code, and without the code that was stripped from the at least one function, from the server-side to the client-side over the network;
- and
- performing the code that is tagged to be performed by the client-side.
A computer program fixed on a non-transitory computer readable medium of a server for on-the-fly rewriting of a plurality of URLs in a webpage, wherein the computer program, when executed by the server, causes the server to:
- retrieve a webpage comprising a plurality of hyperlinks, an code tagged to be performed by a client-side of a network, and one or more functions set to run at a server-side of the network;
- analyze the plurality of hyperlinks of the webpage and parse the webpage at the server-side of the network;
- optimize the plurality of hyperlinks of the webpage without affecting the code tagged to be performed by the client-side of the network to generate an optimized webpage on the server-side;
- remove code from at least one of the one or more functions set to run at the server-side and not remove code of a first function of the one or more functions because the first function comprises a runat attribute set to “both”;
- and
- transmit the optimized webpage with the code tagged to be performed by the client-side of the network, and without the code that was removed from the at least one function, over the network from the server-side to a web-browser of the client-side of the network.
A system for on-the-fly rewriting of a plurality of URLs in a webpage, the system comprising:
- a first server computer located on a server-side of a network and being configured to:
- receive a request over the network from a web browser on a client-side of the network for a webpage that includes a plurality of hyperlinks, an original code that includes code that is tagged to be performed by the client-side and code that is tagged to be performed by only the server-side;
- and
- process code that is tagged to be performed by the server-side to serve the webpage to the web browser over the network, the code including one or more functions executable by at least one of the server-side and the client-side;
- and
- a second server computer located on the server-side of the network and being configured to:
- retrieve the webpage from the first server,
- analyze the plurality of hyperlinks of the webpage by parsing the webpage at the server-side of the network,
- optimize the plurality of hyper links of the webpage without affecting the code that is tagged to be performed by the client-side to generate an optimized webpage on the server-side of the network,
- identify a first function of the one or more functions that is set to run at the server-side and also set to run at the client-side and not strip the code of the first function,
- strip code from at least one of the one or more functions set to run at the server-side and not also set to run at the client-side, and
- transmit the optimized webpage with the code that is tagged to be performed by the client-side from the server-side to the web browser on the client-side over the network, wherein one of the first or second server computers is further configured to strip the code that is tagged to be performed by only the server-side.
Dependencies are inferred from the claim text.