System and method for on-the-fly rewriting of JavaScript
First Claim
Patent Images
1. A method for on-the-fly rewriting of scripting language, the method comprising:
- receiving a request for a hypertext markup language (“
HTML”
) document at a server-side of a network;
retrieving the HTML document at the server-side;
analyzing code of the HTML document at the server-side with a parser and a runtime engine;
identifying a portion of the code of the HTML document to be rewritten, wherein the portion of the code comprises at least one aspect of a scripting language; and
rewriting the portion of the code of the HTML document into a method call of the scripting language to create an HTML document with rewritten code at the server-side by the parser and the runtime engine.
4 Assignments
0 Petitions
Accused Products
Abstract
A method and system for on-the-fly rewriting of JavaScript is disclosed herein. On a server-side, the JavaScript of a Web-page is analyzed with a JavaScript parser and a runtime engine to identify property invocations, functions or any other JavaScript aspect of the JavaScript of the Web-page. The property invocations, functions or any other JavaScript aspect of the JavaScript of the Web-page are rewritten into a plurality of method calls to create a Web-page with instrumentation of when the method calls are executed, and the Web-page with instrumentation is transmitted to the client-side.
-
Citations
18 Claims
-
1. A method for on-the-fly rewriting of scripting language, the method comprising:
-
receiving a request for a hypertext markup language (“
HTML”
) document at a server-side of a network;retrieving the HTML document at the server-side; analyzing code of the HTML document at the server-side with a parser and a runtime engine; identifying a portion of the code of the HTML document to be rewritten, wherein the portion of the code comprises at least one aspect of a scripting language; and rewriting the portion of the code of the HTML document into a method call of the scripting language to create an HTML document with rewritten code at the server-side by the parser and the runtime engine. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13)
-
-
14. A server for rewriting JavaScript on a server-side of a network, the server configured to:
-
retrieve a webpage, analyze JavaScript of the webpage to identify at least one aspect of the JavaScript, wherein the analyzing is performed by a parser and a runtime engine at the server-side, rewrite the at least one aspect of the JavaScript of the webpage into a method call to create a webpage with instrumentation of when the method call is executed by the parser and the runtime engine, and transmit the webpage with the instrumentation of when the method call is executed to a client-side over the network. - View Dependent Claims (15, 16, 17, 18)
-
Specification