Page processing method, storage medium and equipment

A processing method and page technology, which is applied in the computer field, can solve problems such as iframe blocking parent page onload events from loading multiple times, affecting user experience, slowing down page loading speed, etc.

Pending Publication Date: 2021-07-06
GUANGZHOU HUYA TECH CO LTD
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, limited to the characteristics of the iframe tag, in the scene where the iframe tag is used, the iframe often blocks the onload event of the parent page, and the same dependency of the parent and child pages leads to multiple loading problems, which in turn slows down the page loading speed and affects the user 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
  • Page processing method, storage medium and equipment
  • Page processing method, storage medium and equipment
  • Page processing method, storage medium and equipment

Examples

Experimental program
Comparison scheme
Effect test

specific Embodiment

[0057] This embodiment is applied to a web application program, and after the web application program is started, the front-end page of the web application program starts to load. Wherein, the front-end page is nested with two sub-pages, namely sub-page A and sub-page B. During the process of displaying the front-end page, the user can switch and display the contents of the sub-pages through corresponding buttons on the front-end page.

[0058] Wherein, during the display process of the front-end page, if it is detected that subpage A needs to be loaded, the processing procedure of the web application is as follows: figure 2 shown, including:

[0059] S201. Obtain the URL of the subpage A;

[0060] S202. Create a specified tag in the source code of the front-end page, the specified tag includes: a block-level tag that does not contain element content;

[0061] S203. Create a snapshot of the front-end page, which is used to record the state of the global window object of the...

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 invention provides a page processing method, a storage medium and equipment, in the method, when a sub-page of a current page needs to be loaded, an obtained URL of the sub-page is utilized to obtain an HTML file of the sub-page, and a code snippet which cannot be automatically executed during dynamic insertion is extracted from the HTML file of the sub-page to be stored; And the code of the HTML file of the subpage is inserted into the specified label in the source code of the current page, so that the display of the subpage is realized by executing the code of the HTML file and then executing the stored code snippets. Thus, under the condition of not depending on an iframe label, embedding of the sub-page is achieved, the code of the sub-page serves as a part of the code of the parent page, loading of the sub-page does not affect loading of the parent page, and then the operation efficiency of the page and the use experience of a user are improved.

Description

technical field [0001] This description relates to the field of computer technology, and in particular to a page processing method, storage medium and equipment. Background technique [0002] When doing page design, there is often a need to nest pages with other URLs in the page. In related technologies, the iframe tag is generally used to nest subpages in the parent page. The iframe tag is an HTML (Hyper TextMarkup Language, hypertext markup language) tag, which specifies an inline frame for use in the current HTML document. embedded in another document. However, limited to the characteristics of the iframe tag, in the scene where the iframe tag is used, the iframe often blocks the onload event of the parent page, and the same dependency of the parent and child pages leads to multiple loading problems, which in turn slows down the page loading speed and affects the user experience. . Contents of the invention [0003] In order to overcome the problems existing in relat...

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): G06F16/958G06F16/955
CPCG06F16/972G06F16/955
Inventor 张梓丹
Owner GUANGZHOU HUYA 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