发明名称 DYNAMIC LOADING OF ROUTES IN A SINGLE-PAGE APPLICATION
摘要 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.
申请公布号 US2016100030(A1) 申请公布日期 2016.04.07
申请号 US201414507644 申请日期 2014.10.06
申请人 LinkedIn Corporation 发明人 Brown Derek;Pandya Abhishek;Mulgrew Zachary;Smith Jordan;Miller Adam;Kusuma Asa
分类号 H04L29/08;G06F3/0482 主分类号 H04L29/08
代理机构 代理人
主权项 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; 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.
地址 Mountain View CA US