Webpage presenting method and device based on HTML5 (Hypertext Markup Language 5) protocol
A web page display and protocol technology, applied in the field of information display, can solve the problems of unable to realize the web page display and reduce the HTML5 protocol, and achieve the effect of improving the performance of web page display and improving the efficiency of display
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0063] The process of displaying a webpage includes a series of closely connected operations, such as downloading of webpage resources, parsing and rendering of webpage resources, and so on. There are differences in the parsing process of webpage resources based on different protocol standards. It is precisely because of this difference that many browsers cannot support webpage resources based on the HTML5 protocol. The usual way to solve this problem in the prior art is to use external plug-ins Programs or through special upgrade packages to achieve upgrades, and these practices are contrary to the purpose of the HTML5 protocol to reduce the use of plug-ins. This application completes the parsing process through the Javascript language that comes with the browser, thereby better solving the above-mentioned problems.
[0064] see figure 1 , which shows the flow of the method for presenting a web page based on the HTML5 protocol in the embodiment of the present application. T...
Embodiment 2
[0073] The above-mentioned embodiment realizes the support of the web page based on the HTML5 protocol by using the Javascript language as the parsing language. In the actual application process, the analysis of webpage resources using Javascript language as the analysis language includes multiple implementation methods, and the application preferably completes the analysis process according to the following embodiments. see figure 2 , which shows the flow of the method for presenting a web page based on the HTML5 protocol in Embodiment 2 of the present application. This example includes:
[0074] Step S201: Obtain webpage resources based on the HTML5 protocol;
[0075] Step S202: Perform lexical analysis on the web resource in Javascript language to obtain HTML tags;
[0076] The obtained web page resources usually exist in the form of HTML code files. To display the web pages, it is necessary to first identify HTML5 tags from the HTML code files, so as to use the tags to...
Embodiment 3
[0089] The foregoing embodiments have introduced in detail the parsing process of the page resource in this application. After parsing the page resource, what specific rendering method should be used to render the DOM tree display structure generated by the parsing, or how to improve the rendering efficiency before rendering? The preprocessing measures of the present application are not limited in this embodiment, which does not affect the realization of the invention object of the present application. However, in the actual application process, the present application can also implement corresponding operations based on the Javascript language, so as to improve the personalization and efficiency of rendering and presentation. These operations include processes such as style control, typesetting, and text drawing. The following describes the specific process of implementing these operations based on Javascript in turn.
[0090] For style control: style control is used to defin...
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