Webpage rolling positioning method and device and storage medium
A technology for scrolling positioning and web pages, applied in the computer field, can solve problems such as frame drop, and achieve the effect of reducing CPU overhead, reducing data processing volume, and improving display performance
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- Publication Date
- 2021-12-07
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and storage medium for scrolling and positioning a web page. Background technique
[0002] When displaying a webpage on a browser, a navigation area and a window area are often set. Clicking on the navigation area can locate the corresponding window area. When the content in the window area is scrolled, it will also be displayed in the navigation area.
[0003] Usually, the anchor point or scroll event is used for scrolling positioning of the web page. The positioning accuracy of anchor point scrolling positioning is not high. Using the scroll event to scroll the web page can improve the positioning accuracy. However, when the scroll event is triggered frequently, since the scroll event involves a large number of calculations and processes such as document object model (Document ObjectionModel: DOM) element operations, it takes a relatively long...
Examples
Embodiment Construction
[0048] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
[0049] In order to solve the technical problem that the scroll event is prone to frame drop phenomenon, the present application provides a web page scroll positioning method, device and storage medium. The technical idea of this application is: configure a listener for each title element and paragraph element, and the listening process of the listener and the web page display process a...