IP Library Granted Patent US 10,754,767
Granted Patent B2
US 10,754,767 · App. 15/442,489 · Granted Aug 25, 2020

Method and apparatus for loading a resource in a web page on a device

Inventor: Xiaozhen Wang (Guangzhou, CN)
Assignee: Guangzhou UCWeb Computer Technology Co., Ltd.
G06F12/023G06F16/958G06F16/9574G06F16/9577H04L67/02G06F2212/1044
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,754,767
App. No.
15/442,489
Granted
Aug 25, 2020
Kind
B2
Abstract

The present disclosure discloses a method and an apparatus for loading a resource in a web page on a device as well as a computer-readable storage medium. Wherein, the method comprises: determining whether a current available memory level of the device is normal or low; loading the resource in the web page according to the current available memory level; wherein, if the current available memory level is low, loading the resource in the web page according to the current available memory level further comprises: loading a specified resource tailored from the resource in the web page. According to the embodiments of the present disclosure, lots of memory may be saved and the loading speed may be improved. Therefore the browser resided in the device may be prevented from being broken, and the user experiences may be improved.

Claims (55)

1. A method of loading a resource in a web page on a device, comprising:

interpreting an extended syntax in html of the web page, wherein the extended syntax identifies a set of normally loaded resources corresponding to a normal memory level and a specified resource corresponding to a low memory level,

the specified resource being tailored from the set of normally loaded resources and taking less memory usage than the set of normally loaded resources:

determining a current available memory level of the device;

in response to determining that the current available memory level is larger than a threshold:

determining a screen resolution of a screen of the device;

loading a resource from the set of normally loaded resources according to the screen resolution of the device; and

displaying the resource from the set of normally loaded resources in the screen of the device; and

in response to determining that the current available memory level is less than the threshold, loading the specified resource to be entirely displayed in the screen of the device and to consume an entire space of the screen.

2. The method of claim 1 , wherein, the resource includes pictures, audio information, or video information.

3. The method of claim 1 , wherein, the determining the current available memory level of the device further comprises:

obtaining system service information of an operating system running on the device;

obtaining available memory size according to the system service information;

determining the current available memory level is low when the available memory size is less than the threshold; and

determining the current available memory level is normal when the available memory size is larger than the threshold.

4. The method of claim 1 , wherein, in response to determining that the current available memory level is low, the loading the normally loaded resource or the specified resource further comprises: loading the specified resource by obtaining information of the specified resource from a header of the normally loaded resource.

5. The method of claim 1 , further comprising:

determining whether the normally loaded resource is loaded on the device;

in response to determining that the normally loaded resource is loaded on the device and that the current available memory level is low, releasing memory taken by the normally loaded resource.

6. The method of claim 1 , further comprising:

designing the web page with the extended syntax, the extended syntax comprising:

a first storage path of one or more pictures of the specified resource to be loaded in the web page if the current available memory level is low; and

second and third storage paths of the one or more pictures to be loaded in the web page, respectively, for a smaller screen resolution of the device and for a larger screen resolution of the device, if the current available memory level is normal.

7. An apparatus of loading a resource in a web page on a device, comprising:

one or more hardware processors configured to:

interpret an extended syntax in html of the web page, wherein the extended syntax identifies a set of normally loaded resources corresponding to a normal memory level and a specified resource corresponding to a low memory level,

the specified resource being tailored from the set of normally loaded resources and taking less memory usage than the set of normally loaded resources:

determine a current available memory level of the device;

in response to determining that the current available memory level is larger than a threshold:

determine a screen resolution of a screen of the device;

load a resource from the set of normally loaded resources according to the screen resolution of the device; and

display the resource from the set of normally loaded resources in the screen of the device; and

in response to determining that the current available memory level is less than the threshold, loading the specified resource to be entirely displayed in the screen of the device and to consume an entire space of the screen.

8. The apparatus of claim 7 , wherein, the resource includes pictures, audio information or video information.

9. The apparatus of claim 7 , wherein, the one or more hardware processors are further configured to:

obtain system service information of an operating system running on the device;

obtain available memory size according to the system service information; and

determine that the current available memory level is low when the available memory size is less than the threshold; and

determine the current available memory level is normal when the available memory size is larger than the threshold.

10. The apparatus of claim 7 , wherein, the one or more hardware processors are further configured to obtain information of the specified resource from a header of the normally loaded resource if the current available memory level is low.

11. A non-transitory computer-readable storage medium on which instructions are stored, wherein, the instructions, when executed by a processor, perform a method of loading a resource in a web page on a device, the method including:

interpreting an extended syntax in html of the web page, wherein the extended syntax identifies a set of normally loaded resources corresponding to a normal memory level and a specified resource corresponding to a low memory level,

the specified resource being tailored from the set of normally loaded resources and taking less memory usage than the set of normally loaded resources:

determining a current available memory level of the device;

in response to determining that the current available memory level is larger than a threshold:

determining a screen resolution of a screen of the device;

loading a resource from the set of normally loaded resources according to the screen resolution of the device; and

displaying the resource from the set of normally loaded resources in the screen of the device; and

in response to determining that the current available memory level is less than the threshold, loading the specified resource to be entirely displayed in the screen of the device and to consume an entire space of the screen.

12. The non-transitory computer-readable storage medium of claim 11 , wherein, the resource includes pictures, audio information, or video information.

13. The non-transitory computer-readable storage medium of claim 11 , wherein, the determining the current available memory level of the device further comprises:

obtaining system service information of an operating system running on the device;

obtaining available memory size according to the system service information;

determining the current available memory level is low when the available memory size is less than the threshold; and

determining the current available memory level is normal when the available memory size is larger than the threshold.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 29, 2020
From: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 053601/0565 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 25, 2017
From: WANG, XIAOZHEN
To: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
Reel/Frame 041377/0800 →
Continuity (2)
Continuation PCTCN2015079258 · May 19, 2015
Related Publication 20170168927A1 · Jun 15, 2017