# US 2008/0307394 A1 · Asynchronous load of source dependencies

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2008/0307394 A1
- Document ID: US20080307394A1
- Status: Published application
- Kind: A1
- Application number: 11/811,020
- Filed: 2007-06-08
- Published: 2008-12-11
- Earliest claimed: 2007-06-08
- Assignees: Apple Inc.
- Inventors: Benoit Marchant
- Web page: https://patentgrep.com/patent/US20080307394A1

## CPC

- G06F 9/44521: {Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 1

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; and
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.

### Claim 2 (depends on 1)

A method as recited in claim 1, wherein the indication that the source file is not available comprises an indication that the source file is not available at a client.

### Claim 3 (depends on 1)

A method as recited in claim 1, wherein the source file is loaded from a server.

### Claim 4 (depends on 1)

A method as recited in claim 1, wherein the source file comprises a super-class or function of the current class or function.

### Claim 5 (depends on 1)

A method as recited in claim 1, wherein the source file comprises a first source file and further comprising receiving, in the course of loading the first source file, an indication that the first source file depends on a second source file that is not available.

### Claim 6 (depends on 1)

A method as recited in claim 1, wherein the indication that the source file is not available comprises an indication that the source file has not been retrieved from a server.

### Claim 7 (depends on 1)

A method as recited in claim 1, wherein the indication that the source file is not available comprises an indication that the source file has been retrieved from a server but has not been initialized.

### Claim 8 (depends on 1)

A method as recited in claim 1, further comprising receiving an indication that the source file has been loaded.

### Claim 9 (depends on 8)

A method as recited in claim 8, wherein the indication that the source file has been loaded comprises a callback.

### Claim 10 (depends on 9)

A method as recited in claim 9, wherein the callback is triggered by a load event.

### Claim 11 (depends on 9)

A method as recited in claim 9, wherein the callback is sent by an import function configured to retrieve the source file.

### Claim 12 (depends on 9)

A method as recited in claim 9, further comprising registering for the callback.

### Claim 13 (depends on 9)

A method as recited in claim 9, wherein the callback is to a method of an object or function configured to generate programmatically a definition for the current class or function.

### Claim 14 (depends on 8)

A method as recited in claim 8, further comprising executing a portion of the script that depends on the source file.

### Claim 15 (depends on 14)

A method as recited in claim 14, 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.

### Claim 16 (depends on 1)

A method as recited in claim 1, wherein the script comprises a function configured to generate programmatically a definition of the current class or function.

### Claim 17

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; and
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.

### Claim 18 (depends on 17)

A system as recited in claim 17, wherein the processor is further configured to request the source file from the server.

### Claim 19 (depends on 17)

A system as recited in claim 17, wherein the processor is configured to execute the script in the context of a browser software running on the client computer system.

### Claim 20

A computer program product for loading source files, the computer program product being embodied on a 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; and
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.
