Page rendering processing method, device and equipment and readable storage medium
A processing method and page technology, applied in the field of web page rendering
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 It is a flow chart of the page rendering method provided by Embodiment 1 of the present invention. The embodiment of the present invention aims at clearing the cached data only when the NodeJS service in the prior art is restarted. If the module in the js file is changed, the NodeJS service will not update the cached data of the changed module, and the NodeJS service will still use the cached data of the module before the change before restarting, resulting in the problem that the front-end page is not updated in time, providing page rendering method.
[0036] Such as figure 1 As shown, the specific steps of the method are as follows:
[0037] Step S101 , according to the storage path of the js file corresponding to the client's access request, load the js file into the rendering module.
[0038] In this embodiment, the client may be a browser. When a user opens a browser, or opens a web page, or downloads data, etc., the client sends an access request to ...
Embodiment 2
[0062] figure 2 It is a flow chart of the page rendering method provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, when the NodeJS service is started, the rendering main process, sub-process container and request queue are created, and the access request sent by the client is received through the rendering main process, and the js corresponding to the access request is obtained. The storage path of the file; and add the access request to the request queue; the rendering main process determines a target sub-process, and hands the access request to the target sub-process for subsequent rendering processing, and the target sub-process sends the final rendering processing result to Render the main process. Such as figure 2 As shown, the specific steps of the method are as follows:
[0063] Step S201, when the NodeJS service starts, create a rendering main process, a sub-process container and a request queue.
[...
Embodiment 3
[0122] image 3 It is a schematic structural diagram of a page rendering processing device provided by Embodiment 3 of the present invention. The page rendering processing apparatus provided in the embodiment of the present invention can execute the processing flow provided in the page rendering processing method embodiment. Such as image 3 As shown, the page rendering processing device 30 includes: a loading module 301 , a cache data updating module 302 and a rendering processing module 303 .
[0123] Specifically, the loading module 301 is configured to load the js file into the rendering module according to the storage path of the js file corresponding to the client's access request.
[0124] The cached data update module 302 is used for: judging whether there is the cached data of the module in the js file in the cache; If it exists, then the cached data whose cached duration exceeds the preset effective duration in the cached data of the module in the js file is delete...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com