Method and apparatus for compressing webpage text
AssigneeGuangzhou Ucweb Computer Technology Co., Ltd.
InventorsJie Liang, Xiaopeng He, Yongfu Yu, Shunyan Zhu, Xing Yang
Life of this patent
Estimating the term…
Loading patent…
AssigneeGuangzhou Ucweb Computer Technology Co., Ltd.
InventorsJie Liang, Xiaopeng He, Yongfu Yu, Shunyan Zhu, Xing Yang
Estimating the term…
Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.
A method for compressing webpage text, comprising:
An apparatus for compressing webpage text, comprising one or more processors, memory, and one or more program units stored in the memory and to be executed by the one or more processors, the one or more program units comprising:
A non-transitory computer-readable storage medium having a program stored thereon, the program being executed by a processor, wherein, when executed by the processor, the program causes the processor to perform a process for compressing webpage text, the process comprising:
Dependencies are inferred from the claim text.