Patent ID: 8640094

Claim:
A computer program product for building a downloadable application, the computer program product comprising: a computer readable storage medium having computer usable program code embodied therewith, the computer usable program code comprising a computer usable program code configured to: determine, in response to a request to build a downloadable application, a set of resources used by the downloadable application; read the set of resources while building the application to determine a discovered set of resources used by the downloadable application; determine resource dependencies for the set of resources and the discovered set of resources; create a dependency data structure according to the resource dependencies; and determine, in accordance with the dependency data structure, a subset of the set of resources and the discovered set of resources to include in a module associated with the downloadable application, wherein the computer usable program code is configured to determine inclusion of a resource in the module from the subset of the set of resources and the discovered set of resources based at least in part on a frequency of use of the resource.