Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Resource file loading method and apparatus

A resource file and file version technology, applied in the network field, can solve the problems of long loading time and taking up a lot of time.

Active Publication Date: 2015-11-04
TENCENT TECH (BEIJING) CO LTD
View PDF4 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the limitations of mobile terminals and mobile networks, the interaction with the web server will take a lot of time, which will cause the loading time to be too long

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Resource file loading method and apparatus
  • Resource file loading method and apparatus
  • Resource file loading method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0020] figure 1 A flowchart of a resource file loading method provided by an embodiment of the present invention. see figure 1 , the method specifically includes:

[0021] 101. When a webpage access request is received, acquire a resource file address corresponding to the webpage address according to the webpage address carried in the webpage access request, where the resource file address includes server resource file version information.

[0022] 102. According to the resource file version information of the server, determine whether a resource file having the same version information as the resource file of the server is stored in the specified cache, and the specified cache is different from the browser cache.

[0023] 103. When...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a resource file loading method and apparatus, and belongs to the technical field of networks. The method comprises the steps of: when receiving a webpage access request, obtaining a resource file address corresponding to a webpage address according to the webpage address carried by the webpage access request, wherein the resource file address comprises version information of a server resource file; according to the version information of the server resource file, judging whether an appointed cache stores a resource file with the same version information as the server resource file, wherein the appointed cache is different from a browser cache; and when determining that the appointed cache stores the resource file with the same version information as the server resource file, performing loading based on the resource file in the appointed cache. The apparatus comprises a resource file address obtaining module, a first judgment module and a loading module. According to the resource file loading method and apparatus, whether the resource file is locally stored is judged before the server resource file is loaded, so that the time for interaction between a terminal and a server is greatly shortened and the webpage browsing efficiency of a user is improved.

Description

technical field [0001] The invention relates to the field of network technology, in particular to a resource file loading method and device. Background technique [0002] With the development of network technologies, it has become more and more common to use smart terminals to browse webpages. When browsing the webpage on the smart terminal, according to the webpage link input by the user, the corresponding resource file (such as Javascript file, css file) can be downloaded from the webpage server, and the resource file can be loaded to display the webpage. [0003] In the prior art, for a webpage that has been displayed, the smart terminal caches resource files related to the webpage. When the user visits the web page again, a server request needs to be initiated to obtain the address of the resource file. When it is determined according to the address of the resource file that the resource file corresponding to the web page has been cached by the smart terminal, the resou...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30G06F9/445
Inventor 林超赵达丁阳唐昕李健李凤麟
Owner TENCENT TECH (BEIJING) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products