发明名称 METHOD AND APPARATUS FOR INCREASING SUBRESOURCE LOADING SPEED
摘要 Provided are methods and apparatus for increasing subresource loading speed. A method may include receiving a page request initiated by a user, extracting the host domain name corresponding to the page URL, and querying if the hash table has a domain name tree corresponding to the host domain name; if the hash table has a domain name tree corresponding to the host domain name, traversing the domain name tree to extract a plurality of subresource domain names with the highest priority, and at the same time, establishing TCP connections for the host domain name and the plurality of subresource domain names; when the main document data of the host domain name is received, initiating a subresource loading request according to the subresource URL in the main document data; if the subresource domain name in the subresource loading request is a domain name in the above plurality of subresource domain names, directly initiating a HTTP request by using the previously established TCP connection, and completing the loading of the subresource. By establishing TCP connections for subresource domain names with high priority in advance, such methods and apparatus solve the problem that TCP connection needs to be established on site when a subresource loading is requested.
申请公布号 US2016149832(A1) 申请公布日期 2016.05.26
申请号 US201615012095 申请日期 2016.02.01
申请人 GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD. 发明人 LIANG Jie;CHEN Huabin
分类号 H04L12/911;H04L29/06;H04L29/08 主分类号 H04L12/911
代理机构 代理人
主权项 1. A method for increasing subresource loading speed, the method comprising: receiving a page request initiated by a user; extracting the host domain name corresponding to the page URL; querying if the hash table has a domain name tree corresponding to the host domain name; if the hash table has a 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 the highest priority, and at the same time, establishing TCP connections for the host domain name and the plurality of subresource domain names; when the main document data of the host domain name is received, resolving the main document data and initiating a subresource loading request according to the subresource URL in the main document data; and if the subresource domain name in the current subresource loading request is a domain name in the above plurality of subresource domain names, directly initiating a HTTP request by using the previously established TCP connection of the subresource domain name, and completing the loading of the subresource.
地址 Guangzhou CN