×

Method and apparatus for increasing subresource loading speed

  • US 10,250,526 B2
  • Filed: 02/01/2016
  • Issued: 04/02/2019
  • Est. Priority Date: 07/31/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method for increasing subresource loading speed, the method comprising:

  • receiving a page request initiated by a user;

    extracting a host domain name corresponding to a page URL (Uniform Resource Locator);

    querying if a hash table has a domain name tree corresponding to the host domain name;

    in an instance when the hash table has the domain name tree corresponding to the host domain name, traversing the domain name tree corresponding to the host domain name and extracting a plurality of subresource domain names with a highest priority, and at a same time, establishing TCP (Transmission Control Protocol) connections for the host domain name and the plurality of subresource domain names;

    when a main document data of the host domain name is received, resolving the main document data and initiating a subresource loading request according to a subresource URL in the main document data;

    in an instance when the subresource domain name in the subresource loading request is a domain name in the plurality of subresource domain names, directly initiating a HTTP (Hypertext Transfer Protocol) request by using the established TCP connections of the plurality of subresource domain names, and completing the loading of the subresource and wherein, after the subresource loading request is initiated, the method further comprises;

    querying the domain name tree corresponding to the host domain name, in an instance when the domain name tree corresponding to the host domain name does not contain the subresource domain name in the subresource loading request, creating a node in the domain name tree corresponding to the host domain name to store the subresource domain name, and initializing the priority of the subresource domain name according to a resource type of the subresource; and

    in an instance when the domain name tree corresponding to the host domain name contains the subresource domain name in the subresource loading request, updating the priority of the subresource domain name according to the resource type of the subresource.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×