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

Inactive Publication Date: 2018-02-16
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the websites of the single-page application mode in the prior art all enter a page, and when clicking other links of the page to go to a new page, all required resources need to be reloaded in the new page, and the Causes visual stagnation and update waiting on new page loads on the experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Single-page application preloading method, apparatus and device, and computer readable medium
  • Single-page application preloading method, apparatus and device, and computer readable medium
  • Single-page application preloading method, apparatus and device, and computer readable medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a single-page application preloading method. The method comprises: identifying links on a page; ranking the links on the page; and obtaining data requirements corresponding to the links according to the rank, and preloading the data to a storage pool. The present invention also provides a single-page application preloading apparatus and device, and a computer readable medium. According to the technical scheme of the present invention, by preloading the data linked to the page, the page can be switched smoothly, and the new page can be entered by clicking the linkand can be exited promptly; at the same time, the waiting time of the user can be reduced, the user experience can be enhanced, and the idle network resources can be fully used; and the links are ranked according to the click frequency, and loading with priority can be carried out according to the user habit.

Description

technical field [0001] The present invention relates to the technical field of front-end display, and in particular to a single-page application preloading method, device, device and computer-readable medium. Background technique [0002] The traditional web page format needs to be reloaded for each new page, that is, when the user enters a certain web page in the client, the client needs to send a request to the server, and then the server returns the corresponding content, and the client loads it all. And because the traditional webpage form needs to reload all pages again every time a new page is entered, the speed of loading and displaying is slow. [0003] In this regard, another form of web page presentation is provided in the prior art, that is, a website form of a single-page application. A single-page application refers to an application running in a browser, which only loads new page data during use, and does not need to reload the entire webpage, which can improv...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/9558G06F16/9574
Inventor 周芳星
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products