摘要 |
Embodiments of the present invention address deficiencies of the art in respect to module dependency loading in an Ajax environment, and provide a novel and non-obvious method, system and computer program product for the optimized downloading of Javascript in a component based architecture. In an embodiment of the invention, a method for optimized downloading of scripts in a component-based architecture can be provided. The method can include identifying a set of module dependencies for a script embedded in a page received for rendering, locating the module dependencies in a dependency graph for the script, determining from the dependency graph a subset of the module dependencies that have yet to be loaded for the page, requesting each module in the subset in a single request, and loading each requested module in conjunction with rendering the page.
|