Dynamic loading of routes in a single-page application
First Claim
1. A method comprising:
- receiving, at a client device, from a server, a web document data;
in response to receiving the web document data;
executing, at the client device, based on the web document data, an application, andcreating a router process within the application;
wherein the application is a single-page application;
after creating the router process, receiving, at the client device, input that indicates a particular route;
in response to receiving the input that indicates the particular route;
determining, by the router process, whether the particular route is indicated in a list of routes;
in response to determining that the particular route is not indicated in the list of routes, causing, by the router process, the particular route to be sent to the server;
after causing the particular route to be sent to the server, receiving, from the server, at the client device, a set of routes that is associated with the particular route.
2 Assignments
0 Petitions
Accused Products
Abstract
Techniques for dynamically loading route and dependency information in a single-page application (SPA) that executes on a client device are provided. In one technique, a SPA includes a route handler that receives a requested route. The route handler determines whether the requested route matches any route in a list of routes. The only route that the request route may “match” is a wildcard route, which is associated with a function, when called with the requested route as input, causes a server request to be generated and transmitted from the client device to a server. The server responds with the requested route, dependency information for the requested route, and, optionally, one or more other routes, which may be “child” routes of the requested route. A module instance is generated based on the dependency information and loaded into the SPA.
-
Citations
22 Claims
-
1. A method comprising:
-
receiving, at a client device, from a server, a web document data; in response to receiving the web document data; executing, at the client device, based on the web document data, an application, and creating a router process within the application; wherein the application is a single-page application; after creating the router process, receiving, at the client device, input that indicates a particular route; in response to receiving the input that indicates the particular route; determining, by the router process, whether the particular route is indicated in a list of routes; in response to determining that the particular route is not indicated in the list of routes, causing, by the router process, the particular route to be sent to the server; after causing the particular route to be sent to the server, receiving, from the server, at the client device, a set of routes that is associated with the particular route. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11)
-
-
12. A system comprising:
-
one or more processors; one or more storage media storing instructions which, when executed by the one or more processors, cause; receiving, at a client device, from a server, a web document data; in response to receiving the web document data; executing, at the client device, based on the web document data, an application, and creating a router process within the application; wherein the application is a single-page web application; after creating the router process, receiving, at the client device, input that indicates a particular route; in response to receiving the input that indicates the particular route; determining, by the router process, whether the particular route is indicated in a list of routes; in response to determining that the particular route is not indicated in the list of routes, causing, by the router process, the particular route to be sent to the server; after causing the particular route to be sent to the server, receiving, from the server, at the client device, a set of routes that is associated with the particular route. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19, 20, 21, 22)
-
Specification