CN107479868B - Interface loading method, device and equipment - Google Patents

Interface loading method, device and equipment Download PDF

Info

Publication number
CN107479868B
CN107479868B CN201710487897.9A CN201710487897A CN107479868B CN 107479868 B CN107479868 B CN 107479868B CN 201710487897 A CN201710487897 A CN 201710487897A CN 107479868 B CN107479868 B CN 107479868B
Authority
CN
China
Prior art keywords
resource
storage path
interface
name
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710487897.9A
Other languages
Chinese (zh)
Other versions
CN107479868A (en
Inventor
张玉瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202110835334.0A priority Critical patent/CN113536174A/en
Priority to CN201710487897.9A priority patent/CN107479868B/en
Publication of CN107479868A publication Critical patent/CN107479868A/en
Application granted granted Critical
Publication of CN107479868B publication Critical patent/CN107479868B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses an interface loading method, an interface loading device and interface loading equipment, wherein the method comprises the following steps: acquiring the corresponding resource according to the determined resource identifier; generating a resource storage path according to the determined resource identifier; and sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.

Description

Interface loading method, device and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to an interface loading method, apparatus, and device.
Background
With the development of information technology, more and more services are implemented through access interfaces.
Specifically, in the prior art, a service provider shows available resources or services in the form of an online interface, and a user accesses the online interface to obtain the relevant resources or services.
Based on the prior art, a more convenient and faster interface access mode is needed.
Disclosure of Invention
The embodiment of the application provides an interface loading method, device and equipment, which are used for solving the problem that the speed of loading online resources is low when an interface is accessed in the prior art.
Based on this, an embodiment of the present application provides an interface loading method, where the method includes:
acquiring the corresponding resource according to the determined resource identifier;
generating a resource storage path according to the determined resource identifier;
and sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.
Meanwhile, an embodiment of the present application further provides an interface loading method, where the method includes:
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to the resource in the interface to be loaded;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
and if the matching is successful, loading the resources stored in the local according to the resource storage path, wherein the successfully matched resource storage path is generated in advance according to the resource identifier.
An embodiment of the present application further provides an interface loading apparatus, where the apparatus includes:
the acquisition module acquires the corresponding resource according to the determined resource identifier;
the generating module generates a resource storage path according to the determined resource identifier;
and the sending module is used for sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.
An embodiment of the present application further provides an interface loading apparatus, where the apparatus includes:
the determining module is used for determining an interface to be loaded, which needs to be accessed by a user;
the acquisition module acquires a resource identifier corresponding to the resource in the interface to be loaded;
the matching module generates a resource storage path to be matched according to the resource identifier and matches the local resource storage path;
and the loading module loads the resources stored in the local according to the resource storage path if the matching is successful, wherein the successfully matched resource storage path is generated in advance according to the resource identifier.
Correspondingly, an embodiment of the present application further provides an interface loading device, where the interface loading device includes:
the memory stores the interface loading program;
the processor, after receiving the determined resource identifier, calls the information processing program in the memory and executes:
acquiring the corresponding resource according to the determined resource identifier;
generating a resource storage path according to the determined resource identifier;
and sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.
Correspondingly, an embodiment of the present application further provides an interface loading device, where the interface loading device includes:
the memory stores the interface loading program;
the processor calls the interface loading program stored in the memory after receiving the interface loading instruction, and executes:
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to the resource in the interface to be loaded;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
and if the matching is successful, loading the resources stored in the local according to the resource storage path, wherein the successfully matched resource storage path is generated in advance according to the resource identifier.
Based on the same idea, embodiments of the present application further provide a corresponding non-volatile computer storage medium, in which computer-executable instructions are stored, where the computer-executable instructions are configured to:
monitoring the determined resource identifier;
acquiring the corresponding resource according to the determined resource identifier;
generating a resource storage path according to the determined resource identifier;
and sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.
The embodiment of the present application further provides another corresponding non-volatile computer storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are set as:
monitoring an interface loading request;
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to the resource in the interface to be loaded;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
and if the matching is successful, loading the resources stored in the local according to the resource storage path, wherein the successfully matched resource storage path is generated in advance according to the resource identifier.
Compared with the prior art, the resource in the online interface is sent to the local client according to the resource identifier in the embodiment of the application, so that the online resource can be loaded locally when the client accesses the online interface, the time consumption for loading the online interface is reduced, the interface can be rendered more quickly in various network environments (including a weak network environment), and the user experience is improved.
Drawings
FIG. 1 is a block diagram of an architecture as used herein;
FIG. 2 is a schematic flow chart of a method provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart of another method provided by embodiments of the present application;
fig. 4 is a schematic diagram illustrating a step of loading an interface in an actual application according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the foregoing, the interface to be loaded may be an online interface adopted by various application clients (e.g., Hybrid App or Web App) when providing external services, or an online page displayed by various browsers; the resources can comprise resources such as various image files, sound files, HTML files, JS files, CSS files and the like in the online interface.
In this embodiment of the present application, the interface loading method may adopt an architecture as shown in fig. 1, where the client in the architecture may include various application clients installed on a hardware terminal, and the terminal may include various mobile terminals (e.g., a mobile phone, an IPAD, etc.) and a fixed terminal (e.g., a server), and based on this, the aforementioned local storage refers to storing resources on the terminal where the client is installed.
The following describes in detail a process of the interface loading method provided in the embodiment of the present application based on the architecture shown in fig. 1, where the process specifically includes the following steps, as shown in fig. 2:
step S201, obtaining the corresponding resource according to the determined resource identifier.
The determined resource identifier may be predetermined according to a service requirement, or may be received by the server in real time. And the server automatically acquires the resource identifier to acquire the corresponding resource according to the determined resource identifier, and can store the acquired resource on the server when necessary.
It should be noted that the Resource Identifier (e.g., Uniform Resource Identifier, URI) includes a Resource address (e.g., Uniform Resource Locator, URL) and a Resource Name (e.g., Uniform Resource Name, URN), and which manner is specifically selected to implement the Resource Identifier, which is not specifically limited herein, only needs to obtain the determined Resource according to the selected Resource Identifier.
Step S203, generating a resource storage path according to the determined resource identifier.
Specifically, when the resource identifier is a resource address URL, the determined resource address is parsed, the feature information included in the resource address is obtained, the feature information may include a host name of the stored resource, a storage address of the resource in the host, a name of the resource in the host, and the like, and then a resource storage path is generated according to a specific rule according to the feature information.
For example, if the URL of a JS file is https:// abc.com/demo/a.js, then, after parsing, the host name abc.com is obtained, the storage address of the file in the host is a "demo" directory, and the name of the file in the host is a.js, and finally, the following resource storage path is generated: com/demo/a.js.
And if the resource identifier is a resource name URN, generating a resource storage path according to the resource name.
For example, if URN of the file b.js is abcdefg, the following resource storage path is generated according to the URN: abcdefg/b.js.
Step S205, sending the resource and the resource storage path to the client, so that the client locally stores the resource according to the resource storage path.
Namely, the resource and the file containing the resource storage path information are sent to the client, and the client stores the resource to the resource storage path of the local terminal after receiving the file. It is to be understood that the resource storage path is used as a kind of information, and the manner of sending the information is not limited to transmission by a file.
In the previous example, the server sends the file a.js to the client together with the file containing the resource storage path abc.com/demo/a.js. After receiving the file and the resource storage path file, the client stores the a.js file to an abc.com/demo directory of the local terminal according to the received resource storage path; in another case of the foregoing example, the server sends the b.js file and the resource storage path information abcdefg/b.js to the client, and the client stores the b.js file into an abcdefg directory of the local terminal after receiving the b.js file.
In the foregoing storage process, if the resource storage path does not exist in the memory of the local terminal, a file directory is created according to the resource storage path, so as to store the resource into the resource storage path. For the previous example, for the resource storage path abc.com/demo/a.js, a file directory abc.com/demo/, is created and the a.js file is stored under the directory.
By the method, the server acquires the online resources and sends the online resources to the client, so that the online resources are locally stored in the client, and local resource loading is conveniently carried out in subsequent interface loading.
As an alternative of the embodiment of the present application, in step S205, in the process of sending the resource and the resource storage path to the client, the data transmission amount in the transmission process may also be reduced through a compression and decompression process, including the following processes: and generating a resource packet according to the acquired resource and the resource storage path, sending the resource packet to a client so that the client can decompress the resource packet and locally store the resource according to the resource storage path.
In addition, after the server sends the resources to the client, the server can also adopt the above-mentioned process to update the resources according to a set update mechanism, so that the resources stored locally cannot be outdated.
Next, from the perspective of the client, an interface loading process at the client is described, where the process specifically includes the following steps, as shown in fig. 3:
step S301, determining an interface to be loaded, which a user needs to access.
Namely, the client determines the interface to be loaded which the user needs to access through an interface loading instruction initiated by the user.
Step S303, acquiring a resource identifier corresponding to the resource in the interface to be loaded.
After monitoring the access instruction, the client acquires a resource identifier corresponding to a resource in the interface to be loaded, wherein the resource identifier includes a resource address or a resource name.
In the previous example, after determining the page to be accessed, the resource address https:// abc.com/demo/a.js or the resource name abcdefg is obtained.
Step S305, generating a resource storage path according to the resource identifier, and matching the local resource storage path.
Specifically, when the resource identifier is an address, the following may be implemented:
i, analyzing the acquired resource address to obtain characteristic information contained in the resource address;
II, generating a resource storage path according to the characteristic information;
III, matching a local resource storage path according to the generated resource storage path;
the characteristic information comprises a host name of the storage resource, a storage address of the resource in the host and a name of the resource in the host.
In the previous example, if the obtained URL is https:// abc.com/demo/a.js, then, after parsing, the host name abc.com of the storage resource is obtained, the storage address of the resource in the host is a "demo" directory, and the name of the file in the host is a.js, and finally the following resource storage path is generated: com/demo/a.js, and then matching locally at the client according to abc.com/demo/a.js.
For the case that the obtained resource identifier is a resource name, for example, if the resource identifier of the obtained file b.js is a resource name "abcdefg", a resource storage path abcdefg/b.js is generated according to the name, and then matching is performed locally at the client according to the resource storage path abcdefg/b.js.
Step S307, if the matching is successful, loading the resources stored in the local according to the resource storage path, wherein the resource storage path successfully matched is generated in advance according to the resource identifier.
Based on the foregoing description, the storage path of the resource in the local area is generated in advance according to the resource identifier. And when the resource storage path is generated, generating the same resource storage path according to the same resource identifier, and further, the resource under the resource storage path when the matching is successful is the resource corresponding to the acquired resource identifier. At this time, the resources do not need to be loaded online, and local loading is directly performed.
Of course, if the matching fails, it means that the corresponding resource is not stored locally, and at this time, the client may also load the resource online according to the resource identifier.
According to the foregoing architecture, in an actual application scenario, an interface loading process provided by the present application implementation may be as shown in fig. 4, and includes:
step S401: sending the resources and the generated resource storage path to the client;
step S403: the client locally stores the resources according to the resource storage path;
step S405: a user initiates an interface loading request to a client;
step S407: the client acquires the resource identifier in the interface loading request, generates a resource storage path and performs local matching;
step S409: and if the matching is successful, the client loads the resources stored in the local area.
By adopting the method, when the client accesses the online interface, loading of the online resource can be carried out locally, the time consumption for loading the online interface is reduced, the interface can be rendered more quickly under various network environments (including a weak network environment), and the user experience is improved.
Based on the same idea, the present application further provides an interface loading device, as shown in fig. 5, the interface loading device includes:
an obtaining module 501, which obtains the corresponding resource according to the determined resource identifier;
a generating module 503, configured to generate a resource storage path according to the determined resource identifier;
the sending module 505 sends the resource and the resource storage path to the client, so that the client locally stores the resource according to the resource storage path.
Further, the sending module 505 generates a resource packet according to the acquired resource and the resource storage path, and sends the resource packet to the client, so that the client decompresses the resource packet and locally stores the resource according to the resource storage path.
The present application also provides another interface loading device, as shown in fig. 6, where the interface loading device includes:
the determining module 601 is used for determining an interface to be loaded, which needs to be accessed by a user;
an obtaining module 603, configured to obtain a resource identifier corresponding to a resource in the interface to be loaded;
the matching module 605 generates a resource storage path to be matched according to the resource identifier, and matches the local resource storage path;
and the loading module 607, if the matching is successful, loading the resource stored in the local according to the resource storage path, wherein the resource storage path successfully matched is generated in advance according to the resource identifier.
Further, the obtaining module 603 obtains a resource address or a resource name in the interface to be loaded.
Further, the matching module 605 analyzes the acquired resource address to obtain feature information included in the resource address, generates a resource storage path according to the feature information, and matches a local resource storage path according to the generated resource storage path, where the feature information includes a host name of a storage resource, a storage address of the resource in the host, and a name of the resource in the host.
Further, if the matching fails, the loading module 607 loads the resource online according to the resource identifier.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps or modules recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Correspondingly, an embodiment of the present application further provides an interface loading device, where the device server includes:
the memory stores the interface loading program;
the processor, after receiving the determined resource identifier, calls the information processing program in the memory and executes:
acquiring the corresponding resource according to the determined resource identifier;
generating a resource storage path according to the determined resource identifier;
and sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.
Correspondingly, the embodiment of the present application provides another interface loading device, where the device includes a client, and the client includes:
the memory stores the interface loading program;
the processor calls the interface loading program stored in the memory after receiving the interface loading instruction, and executes:
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to the resource in the interface to be loaded;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
and if the matching is successful, loading the resources stored in the local according to the resource storage path, wherein the successfully matched resource storage path is generated in advance according to the resource identifier.
Based on the same inventive concept, embodiments of the present application further provide a corresponding non-volatile computer storage medium, in which computer-executable instructions are stored, where the computer-executable instructions are configured to:
monitoring the determined resource identifier;
acquiring the corresponding resource according to the determined resource identifier;
generating a resource storage path according to the determined resource identifier;
and sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path.
Based on the same inventive concept, the embodiment of the present application further provides another corresponding non-volatile computer storage medium, in which computer-executable instructions are stored, where the computer-executable instructions are set as:
monitoring an interface loading request;
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to the resource in the interface to be loaded;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
and the loading module loads the resources stored in the local according to the resource storage path if the matching is successful, wherein the successfully matched resource storage path is generated in advance according to the resource identifier.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. Especially, as for the device, apparatus and medium type embodiments, since they are basically similar to the method embodiments, the description is simple, and the related points may refer to part of the description of the method embodiments, which is not repeated here.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transient media) such as modulated data signal numbers and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The application may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (12)

1. An interface loading method, which is applied to a server, comprises the following steps:
acquiring corresponding resources according to the determined resource identification, wherein the resources at least comprise resources used for being displayed in an interface to be loaded, and the determined resource identification is predetermined according to business requirements; the resource identification comprises a resource address or a resource name;
generating a resource storage path according to the determined resource identifier;
sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path, and the client loads the locally stored resources to render the interface to be loaded;
if the resource identifier is a resource address, the generating a resource storage path according to the determined resource identifier specifically includes: analyzing the determined resource address, and acquiring feature information included in the determined resource address, wherein the feature information includes a host name of a storage resource, a storage address of the resource in the host and a name of the resource in the host; generating a resource storage path according to the characteristic information and a specific rule;
if the resource identifier is a resource name, generating a resource storage path according to the determined resource identifier, which specifically includes: and generating a resource storage path according to the resource name.
2. The interface loading method according to claim 1, wherein acquiring the corresponding resource according to the determined resource identifier comprises:
and acquiring the corresponding resource according to the determined resource address or resource name.
3. An interface loading method, which is applied to a client, comprises the following steps:
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to a resource in the interface to be loaded, wherein the resource identifier is predetermined according to a service requirement; the resource identification comprises a resource address or a resource name;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
if the matching is successful, loading the resources stored in the local according to the resource storage path to render the interface to be loaded, wherein the successfully matched resource storage path is generated in advance according to the resource identifier, and the storage mode of the resources stored in the local is as follows: after receiving a resource and a resource storage path sent by a server, locally storing the resource sent by the server according to the resource storage path sent by the server;
if the resource identifier is a resource address, generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path, specifically including: analyzing the acquired resource address to obtain feature information contained in the resource address, wherein the feature information comprises a host name of a storage resource, a storage address of the resource in the host and a name of the resource in the host; generating a resource storage path to be matched according to the characteristic information; matching a local resource storage path according to the generated resource storage path to be matched;
if the resource identifier is a resource name, generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path, specifically including: generating a resource storage path to be matched according to the resource name; and matching the local resource storage path according to the generated resource storage path to be matched.
4. The interface loading method according to claim 3, wherein acquiring the resource identifier corresponding to the resource in the interface to be loaded specifically includes:
and acquiring a resource address or a resource name corresponding to the resource in the interface to be loaded.
5. The interface loading method of claim 3, the method further comprising: and if the matching fails, loading the resources on line according to the resource identification.
6. An interface loading device, which is applied to a server, the device comprising:
the acquisition module is used for acquiring the corresponding resources according to the determined resource identification, wherein the resources at least comprise resources used for being displayed in an interface to be loaded, and the determined resource identification is predetermined according to the service requirement; the resource identification comprises a resource address or a resource name;
the generating module generates a resource storage path according to the determined resource identifier;
the sending module is used for sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path, and the client loads the locally stored resources to render the interface to be loaded;
the generation module is specifically configured to: if the resource identifier is a resource address, analyzing the determined resource address, and acquiring feature information included in the determined resource address, wherein the feature information includes a host name of a storage resource, a storage address of the resource in the host and a name of the resource in the host; generating a resource storage path according to the characteristic information and a specific rule;
and if the resource identifier is a resource name, generating a resource storage path according to the resource name.
7. The interface loading apparatus according to claim 6, wherein the obtaining module obtains the corresponding resource according to the determined resource address or resource name.
8. An interface loading device, which is applied to a client, the device comprising:
the determining module is used for determining an interface to be loaded, which needs to be accessed by a user;
the acquisition module acquires a resource identifier corresponding to the resource in the interface to be loaded, wherein the resource identifier is predetermined according to the service requirement; the resource identification comprises a resource address or a resource name;
the matching module generates a resource storage path to be matched according to the resource identifier and matches the local resource storage path;
and the loading module loads the resources stored in the local according to the resource storage path to render the interface to be loaded if the matching is successful, wherein the resource storage path matched successfully is generated in advance according to the resource identifier, and the storage mode of the resources stored in the local is as follows: after receiving a resource and a resource storage path sent by a server, locally storing the resource sent by the server according to the resource storage path sent by the server;
the matching module is specifically configured to: if the resource identifier is a resource address, analyzing the acquired resource address to obtain feature information contained in the resource address, wherein the feature information comprises a host name of a storage resource, a storage address of the resource in the host and a name of the resource in the host; generating a resource storage path to be matched according to the characteristic information; matching a local resource storage path according to the generated resource storage path to be matched;
if the resource identifier is a resource name, generating a resource storage path to be matched according to the resource name; and matching the local resource storage path according to the generated resource storage path to be matched.
9. The interface loading apparatus according to claim 8, wherein the obtaining module obtains a resource address or a resource name corresponding to a resource in the interface to be loaded.
10. The interface loading apparatus of claim 8, wherein the loading module loads the resource online according to the resource identifier if the matching fails.
11. An interface loading device, the device being a server, the device comprising:
the memory stores the interface loading program;
the processor, after receiving the determined resource identifier, calls the information processing program in the memory and executes:
acquiring corresponding resources according to the determined resource identification, wherein the resources at least comprise resources used for being displayed in an interface to be loaded, and the determined resource identification is predetermined according to business requirements; the resource identification comprises a resource address or a resource name;
generating a resource storage path according to the determined resource identifier;
sending the resources and the resource storage path to a client so that the client can locally store the resources according to the resource storage path, and the client loads the locally stored resources to render the interface to be loaded;
if the resource identifier is a resource address, the generating a resource storage path according to the determined resource identifier specifically includes: analyzing the determined resource address, and acquiring feature information included in the determined resource address, wherein the feature information includes a host name of a storage resource, a storage address of the resource in the host and a name of the resource in the host; generating a resource storage path according to the characteristic information and a specific rule;
if the resource identifier is a resource name, generating a resource storage path according to the determined resource identifier, which specifically includes: and generating a resource storage path according to the resource name.
12. An interface loading device, the device being a client, the device comprising:
the memory stores the interface loading program;
the processor calls the interface loading program stored in the memory after receiving the interface loading instruction, and executes:
determining an interface to be loaded, which needs to be accessed by a user;
acquiring a resource identifier corresponding to a resource in the interface to be loaded, wherein the resource identifier is predetermined according to a service requirement; the resource identification comprises a resource address or a resource name;
generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path;
if the matching is successful, loading the resources stored in the local according to the resource storage path to render the interface to be loaded, wherein the successfully matched resource storage path is generated in advance according to the resource identifier, and the storage mode of the resources stored in the local is as follows: after receiving a resource and a resource storage path sent by a server, locally storing the resource sent by the server according to the resource storage path sent by the server;
if the resource identifier is a resource address, generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path, specifically including: analyzing the acquired resource address to obtain feature information contained in the resource address, wherein the feature information comprises a host name of a storage resource, a storage address of the resource in the host and a name of the resource in the host; generating a resource storage path to be matched according to the characteristic information; matching a local resource storage path according to the generated resource storage path to be matched;
if the resource identifier is a resource name, generating a resource storage path to be matched according to the resource identifier, and matching the local resource storage path, specifically including: generating a resource storage path to be matched according to the resource name; and matching the local resource storage path according to the generated resource storage path to be matched.
CN201710487897.9A 2017-06-23 2017-06-23 Interface loading method, device and equipment Active CN107479868B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110835334.0A CN113536174A (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment
CN201710487897.9A CN107479868B (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710487897.9A CN107479868B (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202110835334.0A Division CN113536174A (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment

Publications (2)

Publication Number Publication Date
CN107479868A CN107479868A (en) 2017-12-15
CN107479868B true CN107479868B (en) 2021-06-25

Family

ID=60594471

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710487897.9A Active CN107479868B (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment
CN202110835334.0A Pending CN113536174A (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110835334.0A Pending CN113536174A (en) 2017-06-23 2017-06-23 Interface loading method, device and equipment

Country Status (1)

Country Link
CN (2) CN107479868B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113873013B (en) * 2018-12-25 2023-06-16 创新先进技术有限公司 Offline package reorganization method and system
CN110175053B (en) * 2019-04-24 2023-10-27 创新先进技术有限公司 Picture loading method and device
CN110704766A (en) * 2019-09-29 2020-01-17 上海淇玥信息技术有限公司 Interface rendering optimization method and device based on real-time snapshot and electronic equipment
CN112632425B (en) * 2020-12-10 2024-02-06 京东科技控股股份有限公司 Method, device, equipment and storage medium for generating offline resource file
CN116737257A (en) * 2022-09-30 2023-09-12 荣耀终端有限公司 Customized resource processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105630981A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Network resource loading and configuration method and device
CN106209925A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 Page loading method, client and system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4233386B2 (en) * 2003-05-26 2009-03-04 シャープ株式会社 Information resource server and information resource providing method
US7668929B1 (en) * 2003-09-12 2010-02-23 Microsoft Corporation Abstracting links to electronic resources in a network environment
US20070283262A1 (en) * 2006-05-31 2007-12-06 Joseph Pally Recursive browser system and uses therefor
CN101465889B (en) * 2008-12-03 2011-06-22 北京星网锐捷网络技术有限公司 Network address translation equipment and request method of response address analysis protocol
CN103123630A (en) * 2011-11-21 2013-05-29 腾讯科技(深圳)有限公司 Method, system, mobile terminal and server for obtaining webpage contents
CN103491171A (en) * 2013-09-24 2014-01-01 成都金山数字娱乐科技有限公司 Network resource asynchronous loading method and device
CN103902696B (en) * 2014-03-28 2017-10-13 广州华多网络科技有限公司 A kind of method and device for loading resource file
CN105100291B (en) * 2014-04-22 2018-10-09 深圳市志友企业发展促进中心 A kind of generation method of resource address, apparatus and system
CN103997544B (en) * 2014-06-12 2017-08-25 网易(杭州)网络有限公司 A kind of method and apparatus of resource downloading
CN104965848B (en) * 2015-02-12 2018-01-23 腾讯科技(深圳)有限公司 A kind of front end resource loading method and device
CN106250158A (en) * 2016-08-01 2016-12-21 广州优视网络科技有限公司 The layout method of a kind of client end interface, device and mobile device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209925A (en) * 2015-04-29 2016-12-07 阿里巴巴集团控股有限公司 Page loading method, client and system
CN105630981A (en) * 2015-12-25 2016-06-01 小米科技有限责任公司 Network resource loading and configuration method and device

Also Published As

Publication number Publication date
CN113536174A (en) 2021-10-22
CN107479868A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107479868B (en) Interface loading method, device and equipment
CN107562467B (en) Page rendering method, device and equipment
CN107038042B (en) Service execution method and device
CN107070858B (en) Service processing method and device
CN107038041B (en) Data processing method, error code dynamic compatibility method, device and system
CN108173706B (en) Service marking method, device and equipment under multi-service system
CN107786630B (en) Web application package processing method, device and equipment
CN111796823A (en) Method and device for updating page and displaying page and page maintenance system
CN107580013B (en) Method and device for requesting data in cross-domain mode
CN111796821A (en) Page updating method and device
CN111639278A (en) Webpage loading method and device
CN112364277A (en) Webpage loading method and device
CN112631679A (en) Preloading method and device for micro-application
CN111241040B (en) Information acquisition method and device, electronic equipment and computer storage medium
CN111240788A (en) Method, device and equipment for generating small program page
CN110602163B (en) File uploading method and device
CN106970872B (en) Information point burying method and device
CN111538667A (en) Page testing method and device
CN110874322B (en) Test method and test server for application program
CN108664191B (en) System access method and device
CN107918552B (en) Light application calling method and device, client device and electronic equipment
CN111752431B (en) Information display method and device
CN111242731B (en) Service execution method and device
CN114238934A (en) Equipment information acquisition method, device, equipment and medium
US9477448B2 (en) Screen-oriented computing program refactoring

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1247686

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20201019

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201019

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant