Dynamic loading of routes in a single-page application
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 6.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
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 rou
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (6 of 6 total)
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Ali Mesbah et al., "Spiar: An Architectural Style for Single Page Internet Applications", Reports of Centrum Voor Wiskunde En Informatica, Amsterdam, NL dated Apr. 1, 2006, 12 pages.
- Ember, "Routes Unknown Until Runtime, Dependant on API Response", dated Jun. 2014, 7 pages.
- Ember.JS, "Routing: Defining Your Routes" http://emberjs.com/guides/routing/defining-your-routes/, last viewed on Oct. 10, 2014, 10 pages.
- European Claims in application No. PCT/US2015/044320, dated Dec. 2015, 3 pages.
- European Patent Office, "Search Report" in application No. PCT/US2015/044320, dated Dec. 8, 2015, 14 pages.