Legal claims defining the scope of protection, as filed with the USPTO.
1. A network device for providing a script for synchronous script lazy loading, the network element comprising: a memory having computer readable instructions stored thereon; at least one processor configured to execute the computer readable instructions to extract a script from source code based on a request for a web page; and a transceiver configured to provide the script from the transceiver upon a request for the web page, the script being used with a second processor configured to execute computer readable instructions to perform synchronous script lazy loading, the synchronous script lazy loading including computer readable instructions to split the extracted script source code into a plurality of script modules, generate a plurality of virtual functions, each one of the plurality of virtual functions corresponding to one of the plurality of script modules, the plurality of script modules being associated with the script, load each of the plurality of virtual functions into the memory, load a desired one of the plurality of script modules into the memory from a storage space when a corresponding one of the plurality of virtual functions is requested for initial execution, and execute the desired script module from the memory.
2. The network device of claim 1 , wherein the script lazy loading further includes computer readable instructions to: determine whether a version of the desired script module has a same version as the plurality of script modules stored in the storage space.
3. The network device of claim 1 , wherein the script lazy loading further includes computer readable instructions to: receive a script source code according to a request for the script source code, the script source code having a same version as a version of at least one of the plurality of script modules currently being used; split the script source code into the plurality of script modules; and store the plurality of script modules in the storage space.
4. The network clement device of claim 3 , wherein the script lazy loading further includes computer readable instructions to: split the script source code into the plurality of script modules based on at least one specified character.
5. The network device of claim 3 , wherein each of the plurality of script modules includes a source code and at least one lazy loading option, and the script lazy loading further includes computer readable instructions to: split each of the plurality of script modules according to the at least one lazy loading option; and store the at least one lazy loading option in the storage space.
6. The network device of claim 1 , wherein each of the plurality of generated virtual functions comprise: a script module reading function configured to, read a corresponding one of the plurality of script modules from the storage space, and load the corresponding one of the plurality of script modules into the memory.
7. The network device of claim 1 , wherein the request for initial execution of the desired script module is made when one of the plurality of script modules is initially executed, and the one of the plurality of script modules that is initially executed has a same version as that of the desired script modules.
8. The network device of claim 6 , wherein the script lazy loading further includes computer readable instructions to: invoke, from among methods contained in the loaded script module, a method that overrides one of the plurality of virtual functions that corresponds to the loaded script module.
9. The network device of claim 1 , wherein a function for performing the script lazy loading is provided by the network element in response to a request for a web page.
10. A method for synchronous script lazy loading, the method comprising: splitting, by a processor, script source code into a plurality of script modules generating, by the processor, a plurality of virtual functions, each one of the plurality of virtual functions corresponding to one of the plurality of script modules; loading, by the processor, the plurality of virtual functions into a memory; and when one of the plurality of virtual functions which corresponds to the desired script module is called for initial execution, loading, by the processor, a desired one of the plurality of script modules from a storage space into the memory, and executing, by the processor, the desired script module from the memory.
11. The method of claim 10 , further comprising: determining whether a version of the desired script module has a same version as the plurality of script modules stored in the storage space.
12. The method of claim 10 , further comprising: requesting a script source code which has a same version as a version of at least one of the plurality of script modules that is currently being used; receiving the requested script source code; splitting the received script source code into the plurality of script modules; and storing the plurality of script modules in the storage space.
13. The method of claim 12 , wherein the splitting of the script source comprises: splitting the script source code into each of the plurality of script modules based on at least one specified character.
14. The method of claim 12 , wherein each of the plurality of script modules includes a source code and at least one lazy loading option, and the splitting of the script source code comprises: splitting each of the plurality of script modules according to the at least one lazy loading option; and storing the at least one lazy loading option in the storage space.
15. The method of claim 10 , wherein each of the plurality of virtual function performs a function of: reading a corresponding one of the plurality of script modules from the storage space; and loading the corresponding one of the plurality of script modules into the memory.
16. The method of claim 10 , wherein the request for initial execution of the desired script module is made when one of the plurality of script modules is initially executed, and the one of the plurality of script modules that is initially executed has a same version as that of the desired script modules.
17. The method of claim 15 , wherein the executing of the script module comprises: invoking, from among methods contained in the loaded script module, a method that overrides one of the plurality of virtual functions that corresponds to the loaded script module.
18. A non-transitory computer-readable recording medium having recorded thereon program code, that when executed by a processor, performs a function according to the method of claim 10 .
19. A client device for performing synchronous script lazy loading, the client device comprising: a memory having computer readable instructions stored thereon; at least one processor configured to execute the computer readable instructions to, split source code of a received script into a plurality of script modules, generate a plurality of virtual functions, each one of the plurality of virtual functions corresponding to one of the plurality of script modules, the plurality of script modules being associated with the received script, and load each of the plurality of virtual functions into the memory, and load a desired one of the plurality of script modules into the memory from a storage space when a corresponding one of the plurality of virtual functions is requested for initial execution, and execute the desired script module from the memory.
20. A method for providing a script for synchronous script lazy loading, the method comprising: extracting, by a processor, a script from source code based on a request for a web page; and providing, by the processor, the script from the transceiver upon a request for the web page, the script being for synchronous script lazy loading, the synchronous script lazy loading including, splitting the extracted script source code into a plurality of script modules, generating a plurality of virtual functions, each one of the plurality of virtual functions corresponding to one of the plurality of script modules, the plurality of script modules being associated with the received script, loading each of the plurality of virtual functions into a memory, loading a desired one of the plurality of script modules into the memory from a storage space when a corresponding one of the plurality of virtual functions is requested for initial execution, and executing the desired script module from the memory.
Unknown
March 22, 2016
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.