CPC G06F 16/9574 (2019.01) [G06F 9/451 (2018.02); G06F 16/957 (2019.01); G06F 16/986 (2019.01); G06F 9/44526 (2013.01); G06F 9/45529 (2013.01); G06F 16/958 (2019.01)] | 5 Claims |
1. A method of pre-rendering a page, comprising:
acquiring a static resource of a page to be processed;
acquiring a hypertext markup language structure information compiled of the page; and
generating a static hypertext markup language file of the page by using a native server-side rendering function of a web frame according to the static resource and the hypertext markup language structure information,
wherein the static resource contains Cascading Style Sheets and JavaScript scripts, and wherein the generating a static hypertext markup language file of the page by using a native server-side rendering function of a web frame comprises: executing the JavaScript scripts in an eval environment, simulating a required browser host environment by a JavaScript Document Object Model JSDOM, and generating the static hypertext markup language file of the page by using the native server-side rendering function of the web frame.
|