主权项 |
1. A method of generating and presenting a webpage on a user interface, the method comprising:
transmitting, by one or more processors, a request for an initial webpage view of an initial webpage, wherein the request is transmitted from a client computer to a server-side layout manager in a server, wherein the server-side layout manager aggregates page controllers from different Open Services Gateway initiative (OSGi) bundles that are used to request logical portions of the initial webpage view, wherein each of the OSGi bundles comprises a model component, a view component, and a controller component that all conform with a Model-View-Controller (MVC) architecture pattern, and wherein the server-side layout manager invokes a server-side rendering engine to build the initial webpage view by utilizing the different OSGi bundles; receiving, at the client computer and from the server, a copy of the initial webpage view, a client-side rendering engine, and a client-side layout manager; parsing, by the client-side layout manager, client-side controllers out of the client-side layout manager to determine which views for a requested webpage are to be pre-fetched before generating a webpage; invoking, by the client-side layout manager, the client-side rendering engine to pre-fetch and cache selected views of particular webpages; in response to the client computer receiving a request for the requested webpage that is derived from the initial webpage, determining, by the client-side layout manager, which cached selected views compose the requested webpage; and invoking, by the client-side layout manager, the client-side rendering engine to build and render the requested webpage from the initial webpage view and one or more of the cached selected views. |