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. 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.
Claims39
A method of loading source files, comprising:
- receiving, in the course of executing a script, an indication that a source file on which a current class or function depends is not available;
- continuing execution of remaining portions of the script, if any, that do not depend on the source file, or continuing on to other processing tasks if no such portions remain, while the source file is loaded asynchronously;
- receiving an indication that the source file has been loaded;
- and
- executing a portion of the script that depends on the source file;
- and
- wherein the portion of the script that depends on the source file comprises a method that includes programmatically in a definition of the current class or function the methods and variables of a super-class with which the source file is associated.
A client computer system, comprising:
- a communication interface;
- and
- a processor coupled to the communication interface and configured to:
- receive, in the course of executing a script, an indication that a source file on which a current class or function depends is not available;
- continue execution of remaining portions of the script, if any, that do not depend on the source file, or continuing on to other processing tasks if no such portions remain, while the source file is loaded asynchronously from a server via the communication interface;
- receive an indication that the source file has been loaded;
- and
- execute a portion of the script that depends on the source file;
- and
- wherein the portion of the script that depends on the source file comprises a method that includes programmatically in a definition of the current class or function the methods and variables of a super-class with which the source file is associated.
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:
- receiving, in the course of executing a script, an indication that a source file on which a current class or function depends is not available;
- continuing execution of remaining portions of the script, if any, that do not depend on the source file, or continuing on to other processing tasks if no such portions remain, while the source file is loaded asynchronously;
- receiving an indication that the source file has been loaded;
- and
- executing a portion of the script that depends on the source file;
- and
- wherein the portion of the script that depends on the source file comprises a method that includes programmatically in a definition of the current class or function the methods and variables of a super-class with which the source file is associated.
Dependencies are inferred from the claim text.