-
公开(公告)号: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.