-
公开(公告)号:US20190251143A1
公开(公告)日:2019-08-15
申请号:US16393417
申请日:2019-04-24
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Yaya DAI , Feng HU , Tao ZHANG , Yiquan ZHAO
CPC classification number: G06F17/22 , G06F16/00 , G06F17/248 , H04L67/02 , H04L67/42
Abstract: Embodiments of the present invention disclose a web page rendering method and a related device. The method includes: After receiving a page loading request of a client, a server may obtain initial page content matching the page loading request and return the initial page content to the client, where the initial page content includes a front-end framework and at least one DOM. The client may load the at least one DOM based on the front-end framework; obtain, based on a feature attribute of each DOM of the at least one DOM, a page template and a page metadata that match the DOM; render the page metadata based on the page template to obtain an HTML segment of the DOM; and finally form an HTML page by using all HTML segments. Hardware deployment costs of the server can be reduced, thereby improving page rendering efficiency and system performance.
-
公开(公告)号:US20190213224A1
公开(公告)日:2019-07-11
申请号:US16356778
申请日:2019-03-18
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
IPC: G06F16/958 , G06F16/955 , G06F8/70 , G06F8/38 , G06F3/0482
CPC classification number: G06F16/958 , G06F3/0482 , G06F8/38 , G06F8/70 , G06F16/955
Abstract: The present disclosure discloses a page extension point presentation method. The method includes: determining an extension point placeholder in source code of a page when the page is displayed; determining information about a location of a corresponding extension point in the page based on the extension point placeholder; and presenting, in the page, a visual mark of the extension point based on the location information. When searching for the location of the extension point in the page, a web page administrator does not need to determine, according to a customization manual and from source code of a baseline web page, a code segment corresponding to the extension point in the page, or perform tracing or searching layer by layer based on a hierarchical relationship and a nesting relationship of the code. Therefore, this overcomes a disadvantage that manual searching operations are relatively complex, and improves web page extension efficiency.
-