Patent ID: 8719451

Claim:
A method for on-the-fly post-processing of a Document Object Model of a webpage server-side, the method comprising: receiving a request for the webpage from a client-side; retrieving an HTML document for the webpage at a server-side; receiving the HTML document for the webpage at a script server on the server-side on-the-fly prior to transmission to the client-side; parsing the HTML document for the webpage at the script server on the server-side; building a Document Object Model of the webpage at the script server on the server-side; identifying a plurality of elements of the Document Object Model of the webpage; manipulating the plurality of elements of the Document Object Model of the webpage to create a manipulated Document Object Model of the webpage at the script server on the server-side; serializing the manipulated Document Object Model of the webpage at the script server on the server-side into an HTML document for a webpage with a manipulated Document Object Model; and transmitting the HTML document for the webpage with the manipulated Document Object Model to the client-side.