发明名称 Optimization of scripting for web applications
摘要 A method of reprioritizing execution of a script is disclosed. At least a portion of the script is partitioned into a plurality of component functions. At least one of the plurality of component functions is encapsulated with a wrapper component function. The initial loading of at least one of the plurality of component functions is selectively disabled. A modified script including at least one wrapper component function is generated. In some embodiments, profiling of the plurality of component functions is performed by collecting usage information of the plurality of component functions. In some embodiments, the selective disabling of the initial loading of a component function is based at least in part on the collected usage information of the plurality of component functions.
申请公布号 US9471552(B1) 申请公布日期 2016.10.18
申请号 US201213665723 申请日期 2012.10.31
申请人 Instart Logic, Inc. 发明人 Kolam Hariharan;Venkat Raghu Batta;Askiri Fasihullah;Kennedy Brian
分类号 G06F9/45;G06F17/22 主分类号 G06F9/45
代理机构 Van Pelt, Yi & James LLP 代理人 Van Pelt, Yi & James LLP
主权项 1. A method of reprioritizing execution of a script, comprising: receiving a script that is intended to be sent to and executed by a web browser, wherein the script includes a plurality of component functions; and generating, using at least one processor, a modified script on a server to be sent to and executed by the web browser, comprising: selecting one or more of the plurality of component functions that will not be initially loaded upon execution of the modified script by the web browser; andfor each of the selected component functions:encapsulating the component function with a wrapper component function, wherein the wrapper component function includes codes that assign a body of the component function to a string variable such that the body of the component function is embedded in the modified script, and wherein the wrapper component function further includes codes that evaluate the string variable and execute the string variable as code in response to the wrapper component function being first called, thereby delaying loading of the body of the component function until the wrapper component function is first called; and transmitting the modified script from the server to the web browser, wherein the modified script is executed in the web browser.
地址 Palo Alto CA US