Asynchronous load of source dependencies
AssigneeApple Inc.
InventorBenoit Marchant
Life of this patent
Estimating the term…
Abstract
Asynchronous loading of source dependencies is disclosed. An indication is received in the course of executing a script that a source file on which a current class or function depends is not available, wherein the current class or function is called or executed during the execution of the script. Execution of remaining portions of the script, if any, that do not depend on the source file, continues, or other processing tasks are performed if no such portions remain, while the source file is loaded asynchronously.
Claims20
A method of loading source files, comprising:
- determining, in the course of executing a script, that a current class or function of the script depends on a source file that is not available, wherein the determination is made when the current class is called or the function is executed during the execution of the script;
- in response to determining, initiating an asynchronous load of the source file;
- and
- while the source file is asynchronously loading:
- if the script includes remaining portions that do not depend on the source file, then continue executing the remaining portions of the script, otherwise
- carry out other processing tasks.
A client computer system, comprising:
- a communication interface;
- and
- a processor coupled to the communication interface and configured to:
- determine, in the course of executing a script, that a current class or function of the script depends on a source file that is not available, wherein the determination is made when the current class is called or the function is executed during the execution of the script;
- in response to the determination, initiate an asynchronous load of the source file;
- and
- while the source file is asynchronously loading:
- if the script includes remaining portions that do not depend on the source file, then continue executing the remaining portions of the script, otherwise carry out other processing tasks.
A computer program product for loading source files, the computer program product being embodied on a non-transitory computer readable medium and comprising computer instructions for:
- determining, in the course of executing a script, that a current class or function of the script depends on a source file that is not available, wherein the determination is made when the current class is called or the function is executed during the execution of the script;
- in response to determining, initiating an asynchronous load of the source file;
- and
- while the source file is asynchronously loading:
- if the script includes remaining portions that do not depend on the source file, then continue executing the remaining portions of the script, otherwise carry out other processing tasks.
Dependencies are inferred from the claim text.