Webpage access method and device, equipment and storage medium
By obtaining and storing the access guide map of web pages and displaying web pages with preset files, the problem of too long white screen time is solved, and a faster and more convenient web page access experience is achieved.
Patent Information
- Application Number
- CN202411173774.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-12-13
AI Technical Summary
When accessing web pages, too long white screen time affects the user experience, and the existing technology is difficult to effectively shorten.
By obtaining the access guide map of the web page, character conversion processing is performed and stored in the preset file associated with the web page, the file item is determined using the preset file. When an access command is detected, the access guide map is displayed first to shorten the white screen. time.
There is no need to download the guide map from the network, which significantly shortens the white screen time and improves the user's access experience on the web page.
Smart Images

Figure CN119128306A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of web page access, and in particular to a web page access method, device, equipment and storage medium. Background Art
[0002] At present, with the development of mobile Internet, various applications based on mobile platforms have met people's needs in many aspects of life and work.
[0003] For example, a user can visit the web page corresponding to the URL by clicking a link or opening a browser and entering the URL. However, if the screen of the electronic device takes a long time to change from displaying a blank page to displaying a web page after the user chooses to visit a web page, it is easy to affect the user's experience of visiting the web page, so that the user terminates the visit to the web page. Based on this, how to shorten the white screen time when visiting a web page is an urgent problem to be solved. Summary of the invention
[0004] The main purpose of the present application is to provide a web page access method, device, equipment and storage medium, aiming to solve the technical problem of how to shorten the white screen time when accessing a web page.
[0005] In a first aspect, the present application provides a web page access method, comprising:
[0006] Obtaining an access guidance map of a web page; the access guidance map is obtained by performing character conversion processing on a preset image corresponding to the web page;
[0007] Storing the access guide map in a preset file associated with the web page;
[0008] Determining the file item corresponding to the webpage according to the preset file;
[0009] When an access instruction to the web page is detected, the web page is displayed according to the file item.
[0010] In a second aspect, the present application further provides a web page access device, the web page access device comprising:
[0011] An image acquisition module is used to acquire an access guidance map of a web page; the access guidance map is obtained by performing character conversion processing on a preset image corresponding to the web page;
[0012] An image storage module, used to store the access guide map in a preset file associated with the web page; an item determination module, used to determine the file item corresponding to the web page according to the preset file;
[0013] The web page display module is used to display the web page according to the file item when an access instruction to the web page is detected.
[0014] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor;
[0015] The memory is used to store computer programs;
[0016] The processor is used to execute the computer program and implement the steps of the web page access method as described above when executing the computer program.
[0017] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the web page access method as described above are implemented.
[0018] The present application provides a web page access method, device, equipment and storage medium. The web page access method includes: obtaining an access guidance map of a web page; the access guidance map is obtained by character conversion processing of a preset image corresponding to the web page; storing the access guidance map in a preset file associated with the web page; determining a file item corresponding to the web page according to the preset file; and when an access instruction to the web page is detected, displaying the web page according to the file item.
[0019] By determining the access guidance map of the web page and storing the access guidance map in a preset file associated with the web page, when the computer device displays the web page according to the file item, if the web page cannot be displayed in time because it is not ready, the access guidance map can be displayed first. Since the access guidance map is obtained by character conversion processing of the preset image, there is no need to download the access guidance map from the network, and the access guidance map can be displayed faster and more conveniently. Based on the display of the access guidance map, the user does not need to look at the white screen for a long time while waiting for the web page to be displayed, which is conducive to shortening the white screen time when accessing the web page. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0021] Figure 1 It is a flowchart of a web page access method provided by an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of a preset file associated with a web page according to an embodiment of the present application;
[0023] Figure 3 It is a schematic diagram of a file item corresponding to a web page involved in an embodiment of the present application;
[0024] Figure 4 It is a flowchart of a web page access method involved in an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of a preset corresponding relationship involved in an embodiment of the present application;
[0026] Figure 6 is a flowchart of a web page access method according to another embodiment of the present application;
[0027] Figure 7 is a flowchart of a web page access method according to another embodiment of the present application;
[0028] Figure 8 is a schematic block diagram of a web page access device provided in an embodiment of the present application;
[0029] Fig. 9 It is a schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0031] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0032] The embodiments of the present application provide a web page access method, apparatus, device and storage medium. The web page access method can be applied to a computer device, which can be a mobile phone, a tablet computer, a laptop computer, a desktop computer and the like. It can also be applied to a server, which can be a separate server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0033] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0034] See also Figure 1 , Figure 1 It is a flow chart of a web page access method provided by an embodiment of the present application. It should be noted that the web page access method provided by the embodiment of the present application can be used for computer devices, and of course can also be used for servers. For example, the server can obtain an access guide map of a web page, and store the access guide map in a preset file associated with the web page, so as to determine the file item corresponding to the web page according to the preset file. When an access instruction to a web page is detected, the server can determine the corresponding web page according to the file item, and send the web page to the computer device for the electronic device to display the web page. Of course, it is not limited to this, and no limitation is made here.
[0035] In specific implementation, computer devices include but are not limited to: any one of mobile phones, tablet computers, laptop computers, and desktop computers; the server can be a single server or a server cluster, or a cloud server that provides cloud computing services.
[0036] like Figure 1 As shown, the web page access method includes steps S101 to S104.
[0037] Step S101, obtaining an access guidance map of a web page; the access guidance map is obtained by performing character conversion processing on a preset image corresponding to the web page.
[0038] For example, the preset image corresponding to the web page can be used to determine the access guide map of the web page. The preset image can be pre-set or set by the user, which is not limited here. When the computer device detects the user's access instruction to the web page, and the computer device is not yet able to display the web page, the computer device can determine the access guide map of the web page by performing character conversion processing on the preset image corresponding to the web page. Accordingly, the computer device can preferentially display the access guide map of the web page. Since the access guide map is obtained by performing character conversion processing on the preset image, when the computer device displays the access guide map, the computer device does not need to download the preset image according to the URL request of the preset image to generate the access guide map, which is conducive to improving the display rate and display convenience of the access guide map. Based on the display of the access guide map, the user does not need to view the white screen page on the screen for a long time while waiting for the web page to be displayed, which is conducive to shortening the white screen time when accessing the web page, thereby helping to improve the user's access experience to the web page.
[0039] In some embodiments, when there is an image whose image size matches the page size of a web page and the storage occupied by the image is less than or equal to a preset storage threshold, the image is determined to be a preset image corresponding to the web page; the preset image is converted into a string to obtain an access guidance map.
[0040] When determining the access guidance graph of a web page, it is necessary to determine the preset image corresponding to the web page in advance.
[0041] For example, a webpage may have a corresponding relationship with a plurality of images. Based on the corresponding relationship between the webpage and the plurality of images, the webpage may obtain the image size of each image and the storage volume occupied by each preset image.
[0042] When the image size of an image matches the page size of a webpage, the computer device may determine that the image can cover the page size of the webpage. For example, the width of the image can cover the page width of the webpage, and the height of the image can cover the page height of the webpage. In the case where the image can cover the page size of the webpage, if the image is displayed before the webpage is displayed, the screen of the computer device can be occupied by the image without displaying a white screen.
[0043] Accordingly, when the storage occupied by the existing image is less than or equal to the preset storage threshold, the computer device can display the preset image quickly. The preset storage threshold can be pre-set or set by the user, which is not limited here.
[0044] Based on this, the computer device can select a preset image from the images corresponding to the web page by comprehensively considering whether the image size of the image matches the page size of the web page and whether the storage occupied by the image is less than or equal to the preset storage threshold. The preset image can be used to determine the access guide map of the web page.
[0045] For example, the computer device may determine the image as a preset image when the image size is consistent with the page size of the webpage and the storage occupied by the image is less than or equal to the preset storage threshold. The number of preset images may include at least two, which is not limited here.
[0046] When the preset image is determined, the computer device may perform character conversion processing on the preset image to obtain the access guidance map. For example, the computer device may perform base64 character string conversion on the preset image to obtain the access guidance map.
[0047] In this way, when the access guidance map of the web page is determined, the computer device can subsequently display the access guidance map before displaying the web page, so as to shorten the white screen time when accessing the web page.
[0048] Step S102: storing the access guide map in a preset file associated with the web page.
[0049] For example, a preset file associated with a web page can be used to determine the display content of the web page. The file types of the preset file may include index.html file, Cascading Style Sheets (CSS), scripting language file (Java Script, js) and HyperText Markup Language file (HyperText Markup Language, html). Of course, the preset file is not limited to this. The preset file can be pre-set or set by the user, which is not limited here. Figure 2 As shown, the preset files associated with the web page may include files 1 to 9 and index.html. Files 1 to 3 are located in subdirectory 1 corresponding to the web page, files 4 to 6 are located in subdirectory 2 corresponding to the web page, and files 7 to 9 and index.html are located in the main directory corresponding to the web page. Among them, the file types of each of files 1 to 9 may include any one of css files, js files, and html files, which are not limited here.
[0050] In some embodiments, the computer device may store the access guidance map in a first preset file included in the preset file, such as index.html. Accordingly, the computer device may set corresponding js logic for index.html to guide access to the web page based on index.html. In the case where index.html includes the access guidance map, the storage space occupied by index.html is small, and index.html can be displayed without relying on any other css, js, pictures, videos, etc. When the computer device subsequently guides access to the web page based on index.html, the computer device can display the access guidance map faster and more conveniently.
[0051] In this way, by storing the access guidance map in a preset file associated with a web page, the computer device can guide access to the web page based on the access guidance map included in the preset file, which is helpful in shortening the white screen time when accessing the web page.
[0052] Step S103: Determine the file item corresponding to the webpage according to the preset file.
[0053] Exemplarily, when a preset file associated with a webpage is acquired, the computer device may determine a file item corresponding to the webpage. The file item corresponding to the webpage may be provided for the computer device to display the webpage.
[0054] For example, the computer device can perform project construction processing on the preset file based on a preset project construction tool to obtain a file project corresponding to the webpage. The project construction tool includes, for example, project construction tools such as webpack, which are not limited here.
[0055] In some implementations, message digest extraction is performed on the preset file to obtain a processed preset file; and project hierarchical division is performed on the processed preset file according to preset file reference information corresponding to the web page to obtain file projects corresponding to the web page.
[0056] For example, the computer device may perform message digest extraction processing on the preset file according to the message digest algorithm to obtain the processed preset file. The message digest algorithm may include the MD5 message digest algorithm (MD5 Message-Digest Algorithm, MD5), etc., which are not limited here. Figure 3 As shown, the processed preset files may include processed files 1 to 9. Among them, the file names of the files 1 to 9 may carry their own MD5 values.
[0057] Accordingly, the computer device can obtain the preset file reference information corresponding to the web page. For example, when files 1 to 3 are located in subdirectory 1, files 4 to 6 are located in subdirectory 2, files 7 to 9 and index.html are located in the main directory, and it is determined according to the preset file reference information corresponding to the web page that the files located in the main directory can reference the files located in subdirectory 1 and subdirectory 2, the computer device can set processed files 1 to 3 to be located at the level corresponding to subdirectory 1, set processed files 4 to 6 to be located at the level corresponding to subdirectory 2, and set processed files 7 to 9 and index.html to be located at the level corresponding to the main directory, and obtain the file items corresponding to the web page.
[0058] In some embodiments, when the file item corresponding to the webpage is determined, the computer device may upload the file item to the corresponding server, so that when an access instruction to the webpage is subsequently detected, the file item can be downloaded from the corresponding server. For example, the file item corresponding to the webpage can be stored in a content delivery network (CDN). Then, when the computer device subsequently detects an access instruction to the webpage, the computer device can distribute the file item corresponding to the webpage to the nearest node corresponding to the user location information through the CDN in real time according to the user location information corresponding to the access instruction, so as to improve the download efficiency of the file item and shorten the white screen time when accessing the webpage.
[0059] In some implementations, when the file item corresponding to the webpage is determined, a compression transmission function corresponding to the file item is enabled, such as a Gzip compression transmission function, etc. When the compression transmission function is enabled for the file item, when the computer device subsequently detects an access instruction to the webpage, the computer device can download the compressed package corresponding to the file item, which is conducive to improving the download efficiency of the file item, so as to shorten the white screen time when accessing the webpage.
[0060] Step S104: When an access instruction to a web page is detected, the web page is displayed according to the file item.
[0061] For example, when a user requests to access a web page, the computer device may detect an instruction to access the web page. When the computer device detects the instruction to access the web page, the computer device may display the web page according to the file item. For example, if the file item may cover the files included in the web page, the computer device may determine the page content of the web page at the corresponding web page position according to the files in the file item, thereby displaying the web page.
[0062] In some implementations, when a first access instruction to a first preset file on a webpage is detected, historical display information corresponding to the access guide map and download progress information of the file item are obtained.
[0063] For example, the first preset file may include index.html. The first preset file and the first access instruction may be preset or may be set by the user.
[0064] like Figure 4 As shown, the computer device can detect a first access instruction to a first preset file. In response to the detected first access instruction, the computer device can obtain historical display information corresponding to the access guide map and download progress information of the file item. The historical display information can be used to determine whether the computer device has completed the display of the access guide map. The download progress information can be used to determine whether the computer device has completed the download of the file item.
[0065] For example, when it is determined according to the historical display information that the access guide map has not been completely displayed, the access guide map is displayed and the historical display information is updated.
[0066] like Figure 4 As shown, the computer device can judge whether the display of the access guide map is completed by checking the historical display information. For example, when the first access instruction to index.html is detected, the computer device can run the js logic built in index.html to check the historical display information.
[0067] When it is determined according to the historical display information that the access guide map has not been completely displayed, the computer device can display the access guide map to guide the user to access the web page. Accordingly, the computer device can update the historical display information, so that when the user subsequently requests to access the first preset file again with the first access instruction, the computer device can determine that the access guide map has been completely displayed by checking the updated historical display information, so there is no need to display the access guide map again.
[0068] For example, when it is determined according to the download progress information that the file item has not been completely downloaded, the file item is downloaded.
[0069] like Figure 4 As shown, the computer device can obtain the download progress information and judge whether the download of the file item is completed. When the computer device determines that the access guide map has not been displayed completely according to the historical display information, the computer device can determine that the user is visiting the web page for the first time, and then according to the download progress information of the file item of the web page, it can be determined that the file item has not been downloaded completely. Based on this, while the computer device displays the access guide map, the computer device can download the file item, or directly download the file item.
[0070] In some implementations, the web page may notify the computer device to download the file item through a communication method between a web view (webView) and the computer device, and the computer device may download the file item in response to the notification, which is not limited here.
[0071] For example, when it is determined according to the historical display information that the access guide map has been displayed, and it is determined according to the download progress information that the file item has been downloaded, the web page is displayed according to the file item.
[0072] like Figure 4 As shown, when it is determined according to the historical display information that the access guide map has been displayed, and according to the download progress information that the file item has been downloaded, it can be determined that the computer device has made preparations for displaying the web page, and the computer device can display the web page. Based on this, the computer device can display the web page according to the file item.
[0073] In this way, when a first access instruction to a first preset file of a web page is detected, the computer device can use different strategies to perform the display preparation of the web page according to the historical display information corresponding to the access guide map and the download progress information of the file item, so as to display the web page according to the file item when the file item is downloaded, which is conducive to improving the display flexibility of the web page. Accordingly, when the file item is not downloaded, the computer device can first display the access guide map, which is conducive to shortening the white screen time when accessing the web page.
[0074] Exemplarily, the file item is stored in a preset storage path to determine a preset correspondence between each preset file in the file item and the preset storage path.
[0075] For example, when a computer device downloads a file project, the computer device can store the file project in a preset storage path. Since the file project can be updated, it is easy for the same computer device to download different updated versions of the same file project multiple times. Based on this, the computer device can store different updated versions of the same file project in a unified preset storage path, thereby determining the preset correspondence between each preset file in the file project and the preset storage path. Accordingly, if Figure 5 As shown, in the case where the preset file in the file item is a processed preset file obtained after message digest extraction processing, by storing the unified file items of different update versions in a unified preset storage path, the preset correspondence between each processed preset file and the preset storage path can also be established. For example, in the case where the processed file names carry their own MD5 values, since the MD5 values of the processed preset files are unique, the processed preset files and the preset storage paths of the processed preset files can form a unique preset correspondence.
[0076] In some implementations, when a second access instruction to a second preset file of a webpage is detected, the second preset file is obtained from a preset storage path corresponding to the second preset file according to a preset correspondence, so as to display the webpage according to the second preset file.
[0077] For example, the second preset file may include at least one of files 1 to 9 in the file project. The second access instruction includes an http access instruction. Of course, it is not limited to this. The second preset file and the second access instruction may be preset or set by the user, which is not limited here. When the computer device detects the second access instruction to the second preset file, it can determine that the user requests to access the second preset file in the file project. For example, when the second access instruction to file 9 is detected, file 9 can be obtained according to the preset storage path that has a preset corresponding relationship with file 9.
[0078] Of course, it is not limited to this. When a second access instruction to a second preset file is detected and the second preset file is obtained, the computer device can determine the preset storage path corresponding to other second preset files that have a reference relationship with the second preset file according to the preset file reference information corresponding to the webpage, so as to obtain the corresponding other second preset files from the preset storage path corresponding to the other second preset files. Figure 6As shown, since file 8 and file 9 are both located in the general directory corresponding to the webpage, file 4 is located in subdirectory 2 under the general directory, and file 1 and file 2 are located in subdirectory 1 under the general directory, file 9 can reference file 1, file 2, file 4, and file 8. Accordingly, since the computer device can store file items in a preset storage path, when acquiring file 9, file 1, file 2, file 4, and file 8 can also be acquired.
[0079] Based on this, when the second preset file is obtained, the computer device can display the webpage according to the second preset file.
[0080] Of course, it is not limited to this. When the second preset file and the preset storage path corresponding to the second preset file do not exist in the preset corresponding relationship, the computer device can download the second preset file from the network in real time to display the web page according to the downloaded second preset file. This is not limited here.
[0081] In this way, by storing the file project to the preset storage path and determining the preset correspondence between each preset file in the file project and the preset storage path, when the user requests to access the second preset file with a second access instruction, the computer device can directly obtain the corresponding second preset file from the preset storage path indicated by the preset correspondence to display the web page, which is beneficial to improving the efficiency of obtaining the second preset file and improving the efficiency of displaying the web page, thereby helping to shorten the white screen time when accessing the web page.
[0082] Exemplarily, when a third access instruction to a second preset file of a webpage is detected, it is determined whether the preset storage path corresponding to the second preset file has the target file data of the second preset file cached therein.
[0083] For example, the second preset file may include at least one of file 1 to file 9 in the file project, and the third access instruction may include a js access instruction. Of course, it is not limited thereto, and the second preset file and the third access instruction may be preset or set by the user.
[0084] like Figure 7 As shown, when the computer device detects the third access instruction to the second preset file, it can determine the specific content of the second preset file requested by the user, such as the file data related to the second preset file. Based on this, when the computer device detects the third access instruction to the second preset file, it can determine whether the preset storage path corresponding to the second preset file has the target file data of the second preset file cached. The target file data can be used by the computer device to display the web page.
[0085] In some implementations, when the preset storage path does not cache the target file data, the web page is displayed according to the preset file data corresponding to the second preset file in the project file.
[0086] like Figure 7 As shown, when the preset storage path corresponding to the second preset file does not cache the target file data, the computer device can obtain the preset file data corresponding to the second preset file. The preset file data is used to indicate the file data built into the preset code corresponding to the second preset file. When downloading the corresponding file item, the computer device can also download the preset file data of each preset file. When the preset file data corresponding to the second preset file is obtained, the computer device can display the web page according to the preset file data corresponding to the second preset file.
[0087] Accordingly, when the preset file data is built into the preset code corresponding to the second preset file, the computer device directly displays the web page according to the preset file data, which is beneficial to improving the display efficiency of the web page and shortening the white screen time when accessing the web page.
[0088] In some implementations, when the preset storage path caches the target file data, the web page is displayed according to the target file data.
[0089] like Figure 7 As shown, in the case where the preset storage path corresponding to the second preset file has the target file data cached, the computer device can obtain the target file data corresponding to the second preset file. The target file data is used to indicate the file data of the preset file that was most recently downloaded from the network. In the case where the target file data corresponding to the second preset file is obtained, the computer device can display the web page according to the target file data corresponding to the second preset file.
[0090] In this way, when it is detected that the user requests to access the second preset file with the third access instruction, the computer device can select a corresponding strategy based on the cache status of the target file data of the second preset file in the preset storage path to display the web page. For example, if the preset storage path has the target file data cached, the web page is displayed according to the target file data; if the preset storage path does not have the target file data cached, the web page is displayed according to the preset file data of the preset file, which is conducive to improving the flexibility of web page display.
[0091] In some embodiments, current file data of the second preset file is obtained from the network; when the current file data meets the preset web page rendering conditions, the current file data is downloaded to the preset storage path corresponding to the second preset file, and the current file data is determined to be the target file data of the second preset file.
[0092] Exemplarily, the preset webpage rendering condition includes that the page size of the page corresponding to the current file data matches the page size of the webpage; and the page corresponding to the current file data is obtained by rendering the current file data.
[0093] like Figure 7 As shown, when the third access instruction to the second preset file is detected, the computer device can obtain the current file data of the second preset file through the network. If the current file data meets the preset web page rendering condition, such as the page size corresponding to the current file data matches the page size of the web page, the computer device can download the current file data to the preset storage path corresponding to the second preset file, and determine that the current file data is the target file data of the second preset file, so as to update the target file data of the second preset file cached in the preset storage path.
[0094] Correspondingly, in the case where the computer device has downloaded the target file data of the second preset file, the target file data can be used by the computer device to update and display the webpage, which is not limited here.
[0095] In this way, the computer device can obtain the target file data of the preset file through the network, which is conducive to improving the flexibility of obtaining the file data of the web page. Accordingly, the target file data can be used by the computer device to update the displayed web page, which is conducive to improving the display flexibility of the web page.
[0096] The web page access method provided in the above embodiment obtains an access guidance map of the web page; the access guidance map is obtained by character conversion processing of a preset image corresponding to the web page; the access guidance map is stored in a preset file associated with the web page; the file item corresponding to the web page is determined according to the preset file; when the file item corresponding to the web page is detected; when an access instruction to the web page is detected, the web page is displayed according to the file item.
[0097] By determining the access guidance map of the web page and storing the access guidance map in a preset file associated with the web page, when the computer device displays the web page according to the file item, if the web page cannot be displayed in time because it is not ready, the access guidance map can be displayed first. Since the access guidance map is obtained by character conversion processing of the preset image, there is no need to download the access guidance map from the network, and the access guidance map can be displayed faster and more conveniently. Based on the display of the access guidance map, the user does not need to look at the white screen for a long time while waiting for the web page to be displayed, which is conducive to shortening the white screen time when accessing the web page.
[0098] See also Figure 8 , Figure 81 is a schematic block diagram of a web page access device provided in an embodiment of the present application. The web page access device can be configured in a computer device or a server to execute the aforementioned web page access method.
[0099] like Figure 8 As shown, the web page access device includes: an image acquisition module 110 , an image storage module 120 , an item determination module 130 and a web page display module 140 .
[0100] The image acquisition module 110 is used to acquire an access guidance map of a web page; the access guidance map is obtained by converting a preset image corresponding to the web page into characters.
[0101] The image storage module 120 is used to store the access guide image in a preset file associated with the web page.
[0102] The project determination module 130 is used to determine the file project corresponding to the webpage according to the preset file.
[0103] The web page display module 140 is used to display the web page according to the file item when an access instruction to the web page is detected.
[0104] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0105] The method of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0106] Exemplarily, the above method and apparatus may be implemented in the form of a computer program, which may be run on a computer device.
[0107] See also Fig. 9 , Fig. 9 1 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device may be a computer device or a server.
[0108] like Fig. 9 As shown, the computer device includes a processor, a memory, and a network interface connected via a system bus, wherein the memory may include a storage medium and an internal memory.
[0109] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute the steps of any web page access method.
[0110] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0111] The internal memory provides an environment for the operation of the computer program in the storage medium. When the computer program is executed by the processor, the processor can execute the steps of any web page access method.
[0112] The network interface is used for network communication, such as sending assigned tasks.
[0113] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0114] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0115] In one embodiment, the processor is used to execute a computer program and implement the following steps when executing the computer program:
[0116] Obtaining an access guidance map of a web page; the access guidance map is obtained by performing character conversion processing on a preset image corresponding to the web page;
[0117] Storing the access guide map in a preset file associated with the web page;
[0118] Determining the file item corresponding to the webpage according to the preset file;
[0119] When an access instruction to the web page is detected, the web page is displayed according to the file item.
[0120] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above description of web page access can refer to the corresponding process in the aforementioned web page access method embodiment, which will not be repeated here.
[0121] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The method implemented when the computer program is executed by a processor can refer to the various embodiments of the web page access method of the present application.
[0122] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0123] It should be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0124] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0125] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A web page access method, characterized in that: include: Get the access guide map of the web page; The access guide image is obtained by performing character conversion processing on a preset image corresponding to the webpage; Storing the access guide map in a preset file associated with the web page; Determining the file item corresponding to the webpage according to the preset file; When an access instruction to the web page is detected, the web page is displayed according to the file item.
2. The web page access method according to claim 1, characterized in that: The step of obtaining the access guide map of the web page includes: When there is an image whose image size matches the page size of the webpage, and the storage amount occupied by the image is less than or equal to the preset storage amount threshold, determining that the image is a preset image corresponding to the webpage; The preset image is processed into characters to obtain the access guide map.
3. The web page access method according to claim 1, characterized in that: The step of determining the file item corresponding to the webpage according to the preset file includes: Performing message digest extraction processing on the preset file to obtain a processed preset file; According to the preset file reference information corresponding to the webpage, the processed preset file is divided into project levels to obtain the file project corresponding to the webpage.
4. The web page access method according to any one of claims 1 to 3, characterized in that: When an access instruction to the webpage is detected, displaying the webpage according to the file item comprises: When a first access instruction to a first preset file of the webpage is detected, acquiring historical display information corresponding to the access guide map and download progress information of the file item; When it is determined according to the historical display information that the access guide map has not been completely displayed, displaying the access guide map and updating the historical display information; When it is determined according to the download progress information that the file item has not been completely downloaded, downloading the file item; When it is determined according to the historical display information that the access guide map has been displayed completely, and when it is determined according to the download progress information that the file item has been downloaded completely, the web page is displayed according to the file item.
5. The web page access method according to claim 4, characterized in that: After downloading the file item, the method further includes: Storing the file item in a preset storage path to determine a preset correspondence between each preset file in the file item and the preset storage path; The step of displaying the webpage according to the file item includes: When a second access instruction to a second preset file of the webpage is detected, the second preset file is obtained from a preset storage path corresponding to the second preset file according to the preset correspondence, so as to display the webpage according to the second preset file.
6. The web page access method according to claim 4, characterized in that: The step of displaying the webpage according to the file item includes: When a third access instruction to a second preset file of the webpage is detected, determining whether a preset storage path corresponding to the second preset file has cached target file data of the second preset file; When the preset storage path does not cache the target file data, displaying the web page according to the preset file data corresponding to the second preset file in the project file; When the preset storage path caches the target file data, the web page is displayed according to the target file data.
7. The web page access method according to claim 6, characterized in that: The web page access method also includes: Acquire current file data of the second preset file from the network; When the current file data meets the preset web page rendering condition, the current file data is downloaded to the preset storage path corresponding to the second preset file, and the current file data is determined to be the target file data of the second preset file.
8. A web page access device, characterized in that: The web page access device comprises: An image acquisition module is used to acquire an access guidance map of a web page; the access guidance map is obtained by performing string conversion processing on a preset image corresponding to the web page; An image storage module, used for storing the access guide image in a preset file associated with the web page; An item determination module, used to determine the file item corresponding to the webpage according to the preset file; The web page display module is used to display the web page according to the file item when an access instruction to the web page is detected.
9. A computer device, characterized in that: The computer device includes a memory and a processor; The memory is used to store computer programs; The processor is configured to execute the computer program and implement the web page access method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the web page access method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Webpage data loading method and device, computer equipment and storage medium
CN112073405A
Page loading method, device and equipment and storage medium
CN112395529A
A webpage jumping optimization method and device and electronic equipment
CN113569177A
Multimedia information display method and device, electronic equipment and storage medium
CN117632317A
Navigation system
JP2001255160A
