A method of optimizing an app for any of download to, and execution, on a client digital data device, comprising - Step A-identifying a plurality of source code files or portions thereof, including user interface components, used in execution of an app on a client digital data device by a user who at least one of -i-has a designated access group, role, and -ii-requests download of the app from a designated portal, - Step B- for each component identified in Step A: identifying source code files on which execution of that component in connection with execution of the app by the user depends, and generating for that component a dependency-ordered stack of the source code files so identified, where the step of identifying source code files includes crawling the app source code starting at an entry point specific to the user role and designated portal, and recursively descending in both depth and breadth to identify the components used in execution of the app on the client digital data device by such user in view of that role and portal, - Step C- combining the dependency-ordered stacks generated in step B into a single dependency-ordered stack, - Step D-transferring to the client digital data device for loading and execution thereon the source code files identified in the single dependency-ordered stack, where the source code files are transferred based on the dependency order specified in that stack, wherein step D comprises transferring the source code files to the client digital data device in multiple bundles, where the source code files transferred in each bundle is based on the dependency order specified in the single dependency-ordered stack, and wherein the multiple bundles includes at least two of: - i-a top bundle comprising source code loaded as soon as page is visible upon execution of the app on the client digital data device by the user, - ii-a template bundle comprising source code loaded before control rendering begins upon execution of the app on the client digital data device by the user, and - iii-a bottom bundle comprising source code loaded at an end of an initial page load upon execution of the app on the client digital data device by the user. - Step A-identifying a plurality of source code files or portions thereof, including user interface components, used in execution of an app on a client digital data device by a user who at least one of -i-has a designated access group, role, and -ii-requests download of the app from a designated portal, - Step B- for each component identified in Step A: identifying source code files on which execution of that component in connection with execution of the app by the user depends, and generating for that component a dependency-ordered stack of the source code files so identified, where the step of identifying source code files includes crawling the app source code starting at an entry point specific to the user role and designated portal, and recursively descending in both depth and breadth to identify the components used in execution of the app on the client digital data device by such user in view of that role and portal, - Step C- combining the dependency-ordered stacks generated in step B into a single dependency-ordered stack, - Step D-transferring to the client digital data device for loading and execution thereon the source code files identified in the single dependency-ordered stack, where the source code files are transferred based on the dependency order specified in that stack, - i-a top bundle comprising source code loaded as soon as page is visible upon execution of the app on the client digital data device by the user, - ii-a template bundle comprising source code loaded before control rendering begins upon execution of the app on the client digital data device by the user, and - iii-a bottom bundle comprising source code loaded at an end of an initial page load upon execution of the app on the client digital data device by the user.