Single-page application preloading method, apparatus and device, and computer readable medium
A single-page application, preloading technology, applied in computing, special data processing applications, instruments, etc., can solve the problems of visual stagnation and update of new page loading, and achieve the effect of reducing waiting time and enhancing user experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] Such as figure 1 As shown, Embodiment 1 of the present invention provides a single-page application preloading method, including:
[0049] Step S110: Identify the links on the page.
[0050] When the user enters the single-page application, the page of the single-page application will automatically complete the loading of the current page. At this point, there will be different links on the current page for jumping to different pages. At this time, the links on the page are identified, and the links that need to be preloaded are extracted.
[0051] It should be noted that, when performing link recognition, all links may be extracted, or links may be extracted according to a custom method. For example, if a link is not frequently clicked by users, it may not be extracted.
[0052] S120: Sort the links on the page.
[0053] Please also see figure 2 , which is a flow chart of specific steps in step S120 of the first embodiment. After the links on the page are ident...
Embodiment 2
[0064] The difference between the second embodiment and the first embodiment is that the second embodiment has a different way of sorting the links, and the second embodiment is sorted according to the total number of clicks. The specific scheme is as follows:
[0065] Such as image 3 As shown, Embodiment 2 of the present invention provides a single-page application preloading method, including:
[0066] Step S210: Identify the links on the page.
[0067] When the user enters the single-page application, the page of the single-page application will automatically complete the loading of the current page. At this point, there will be different links on the current page for jumping to different pages. At this time, the links on the page are identified, and the links that need to be preloaded are extracted.
[0068] It should be noted that, when performing link recognition, all links may be extracted, or links may be extracted according to a custom method. For example, if a l...
Embodiment 3
[0081] Embodiment 3 corresponds to the single-page application preloading method in Embodiment 1, and provides a single-page application preloading device. The specific solution is as follows:
[0082] see Figure 5 , which is a schematic diagram of the composition and structure of the single-page application preloading device in the third embodiment. Embodiment 3 provides a single-page application preloading device, including: an identification unit 110 , a sorting unit 120 , a loading unit 130 , a first loading unit 140 and a second loading unit 150 .
[0083] The identifying unit 110 is configured to identify all links on the page.
[0084] The sorting unit 120 is configured to sort the links on the page. Specifically, the sorting unit includes: a click frequency acquisition module 121 and a sorting module 122 .
[0085] The click frequency acquiring module 121 is configured to acquire the click frequency of each link.
[0086] The sorting module 122 is configured to so...
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