IP Library Granted Patent US 9,330,074
Granted Patent B2
US 9,330,074 · App. 14/069,311 · Granted May 3, 2016

Style sheet speculative preloading

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 9,330,074
App. No.
14/069,311
Granted
May 3, 2016
Kind
B2
Abstract

Methods for preloading for a web page externally specified resources of a style sheet are provided. In one aspect, a method includes identifying at least one externally specified resource specified by a style sheet for a web page during download of at least one of the style sheet or the web page. The at least one externally specified resource includes at least one of an image, font, audio data, or video data. The method also includes determining whether the web page includes instructions to load the at least one externally specified resource, and loading the at least one externally specified resource specified by the style sheet for the web page when the determination indicates the web page includes instructions to load the at least one externally specified resource. Systems and machine-readable media are also provided.

Claims (35)

1. A computer-implemented method for preloading for a web page externally specified resources of a style sheet, the method comprising:

identifying each externally specified resource specified by a style sheet for a web page after completing download of the style sheet and prior to completion of download of the web page, each externally specified resource comprising at least one of an image, font, audio data, or video data, and the style sheet and the web page being separate files;

constructing a Document Object Model (DOM) and render tree while the web page is being downloaded;

determining whether the web page includes instructions to load the at least one externally specified resource by comparing the render tree as the render tree is constructed while the web page is being downloaded against each externally specified resource from the completed download of the style sheet for the web page to determine whether the render tree includes instructions to load at least one of the externally specified resources, and

loading the at least one externally specified resource specified by the style sheet for the web page when the determination indicates the web page includes instructions to load the at least one externally specified resource.

2. The method of claim 1 , wherein the style sheet comprises a Cascading Style Sheet (CSS).

3. The method of claim 1 , wherein determining whether the web page includes instructions to load the externally specified resource comprises:

receiving an indicator of an element for which the web page comprises instructions to load; and

determining whether the element is associated with the at least one externally specified resource.

4. The method of claim 3 , wherein the element comprises a class or identifier.

5. The method of claim 3 , wherein the indicator of the element is received from at least one of an Hypertext Markup Language (“HTML”) parser or a HTML pre-load scanner.

6. The method of claim 3 , wherein the indicator of the element for which the web page comprises instructions to load is received while the web page is being downloaded.

7. The method of claim 1 , wherein identifying the at least one externally specified resource specified by the style sheet comprises identifying at least one class or identifier associated with the at least one externally specified resource.

8. The method of claim 7 , wherein identifying the at least one externally specified resource specified by the style sheet further comprises identifying at least one type, attribute, language or visited status associated with the at least one externally specified resource.

9. A system for preloading for a web page externally specified resources of a style sheet, the system comprising:

a memory comprising instructions, and

a processor configured to execute the instructions to:

identify each externally specified resource specified by a style sheet for a web page after completing download of the style sheet and prior to completion of download of the web page begins, the at least one externally specified resource comprising at least one of an image, font, audio data, or video data, and the style sheet and the web page being separate files;

construct a Document Object Model (DOM) and render tree while the web page is being downloaded;

determine whether the web page includes instructions to load the at least one externally specified resource by comparing the render tree as the render tree is constructed while the web page is being downloaded against each externally specified resource from the completed download of the style sheet for the web page to determine whether the render tree includes instructions to load at least one of the externally specified resources; and

load the at least one externally specified resource specified by the style sheet for the web page when the determination indicates the web page includes instructions to load the at least one externally specified resource.

10. The system of claim 9 , wherein the style sheet comprises a Cascading Style Sheet (CSS).

11. The system of claim 9 , wherein the processor being configured to execute the instructions to determine whether the web page includes instructions to load the externally specified resource comprises the processor being configured to execute the instructions to:

receive an indicator of an element for which the web page comprises instructions to load, and

determine whether the element is associated with the at least one externally specified resource.

12. The system of claim 11 , wherein the element comprises a class or identifier.

13. The system of claim 11 , wherein the indicator of the element is received from at least one of an Hypertext Markup Language (HTML) parser or a HTML pre-load scanner.

14. The system of claim 11 , wherein the indicator of the element for which the web page comprises instructions to load is received while the web page is being downloaded.

15. The system of claim 9 , wherein the processor being configured to execute the instructions to identify the at least one externally specified resource specified by the style sheet comprises the processor being configured to execute the instructions to identify at least one class or identifier associated with the at least one externally specified resource.

16. The system of claim 15 , wherein the processor being configured to execute the instructions to identify the at least one externally specified resource specified by the style sheet further comprises the processor being configured to execute the instructions to identify at least one type, attribute, language or visited status associated with the at least one externally specified resource.

17. A non-transitory machine-readable storage medium comprising machine-readable instructions for causing a processor to execute a method for preloading for a web page externally specified resources of a style sheet, the method comprising:

identifying each class or identifier associated with an externally specified resource specified by a style sheet for a web page after completing download of the style sheet and prior to completion of download of the web page, the at least one externally specified resource comprising at least one of an image, font, audio data, or video data, and the style sheet and the web page being separate files;

constructing a Document Object Model (DOM) and render tree while the web page is being downloaded;

determining whether the web page includes instructions to load the at least one class or identifier by comparing the render tree as the render tree is constructed while the web page is being downloaded against each externally specified resource from the completed download of the style sheet for the web page to determine whether the render tree includes instructions to load at least one of the externally specified resource; and

loading the at least one externally specified resource specified by the style sheet for the web page when the determination indicates the web page includes instructions to load the at least one externally specified resource.

Assignments (2)
CHANGE OF NAME Recorded Oct 2, 2017
From: GOOGLE INC.
To: GOOGLE LLC
Reel/Frame 044566/0657 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 5, 2013
From: SIMONSEN, JAMES; GENTILCORE, ANTHONY CHARLES
To: GOOGLE INC.
Reel/Frame 031549/0921 →