×

Processing a webpage by predicting the usage of document resources

  • US 9,898,446 B2
  • Filed: 04/17/2013
  • Issued: 02/20/2018
  • Est. Priority Date: 08/16/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method of processing a webpage, comprising:

  • processing an HTML document by a first process executing in a processor of a computing device by scanning the HTML document by an HTML document scanning process to discover external resources referenced in the HTML document and attributes of the HTML document, the first process executing in the processor concurrent with an HTML parser process;

    invoking by the first process executing in the processor a second process executing in the processor for processing a resource document for a discovered external resource, the second process executing in the processor being performed while the first process executing in the processor continues processing the HTML document;

    scanning the resource document using a cascading style sheet document scanner process by the second process executing in the processor to discover additional external resources, the second process executing in the processor scanning the resource document while the first process executing in the processor continues processing the HTML document;

    determining attributes associated with each of the discovered additional resources by the second process executing in the processor;

    predicting by the second process executing in the processor whether each of the discovered additional resources are likely to be required for rendering the HTML document on an electronic display of the computing device by comparing the respective attributes associated with each of the discovered additional resources to the attributes of the HTML document by determining every HTML ID, class, and style attribute for a style rule associated with any of the discovered additional resources matches a processed HTML ID, class, and style attribute associated with HTML elements included in the HTML document processed by the first process executing in the processor;

    downloading by the second process executing in the processor the discovered additional resources predicted by the second process executing in the processor to be likely to be required for rendering the HTML document on the electronic display of the computing device; and

    rendering the HTML document on the electronic display of the computing device using the resource document for the discovered external resource.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×