CN115470426A - Browser kernel determining method and device, computer equipment and storage medium - Google Patents
Browser kernel determining method and device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN115470426A CN115470426A CN202211070597.8A CN202211070597A CN115470426A CN 115470426 A CN115470426 A CN 115470426A CN 202211070597 A CN202211070597 A CN 202211070597A CN 115470426 A CN115470426 A CN 115470426A
- Authority
- CN
- China
- Prior art keywords
- browser
- accessed
- page
- website
- compatibility
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides a browser kernel determining method and device, computer equipment and a storage medium, and relates to the technical field of computers. The browser kernel determining method is applied to a server side and comprises the following steps: receiving a website to be accessed sent by a user side; respectively carrying out compatibility analysis on the page to be accessed corresponding to the website to be accessed and each browser configured in advance to obtain a compatibility analysis result corresponding to each browser; determining the browser with the optimal compatibility in each compatibility analysis result as a target browser; and sending the browser identifier corresponding to the target browser to the user side so as to instruct the user side to load the page to be accessed corresponding to the website to be accessed based on the kernel of the target browser. The technical problem that the switching efficiency of the inner cores in the current dual-core browser is low is solved, and the technical effect of improving the determining efficiency of the inner cores of the browser is achieved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for determining a browser kernel, a computer device, and a storage medium.
Background
The dual-core browser generally refers to a browser having two cores, a Blink (browser core) core of a chrome (web browser) and a Trident (browser core) core of an IE (web browser), and can complete rendering of a web page by switching different cores with each other, thereby solving the problem of page compatibility caused by different browser development technologies.
At present, the switching mode of the dual-core browser kernel mainly comprises the following steps: judging whether the browser version information exists in the page or not, if yes, switching to a kernel specified in the browser version information, and if not, calling a default kernel to render the page. However, in this way, a kernel switching policy needs to be manually set at the server, and when a new page is loaded each time, the information of the page needs to be compared with the configured kernel policy one by one, which takes a long time.
Therefore, the kernel switching efficiency in the current dual-kernel browser is low.
Disclosure of Invention
The embodiment of the application provides a browser kernel determining method and device, computer equipment and a storage medium.
In a first aspect of an embodiment of the present application, a method for determining a browser kernel is provided, where the method is applied to a server, and the method includes:
receiving a website to be accessed sent by a user side;
respectively carrying out compatibility analysis on the page to be accessed corresponding to the website to be accessed and each browser configured in advance to obtain a compatibility analysis result corresponding to each browser;
determining the browser with the optimal compatibility in each compatibility analysis result as a target browser;
and sending the browser identification corresponding to the target browser to the user side so as to instruct the user side to load the page to be accessed corresponding to the website to be accessed based on the kernel of the target browser.
In an optional embodiment of the present application, performing compatibility analysis on the to-be-accessed page corresponding to the to-be-accessed website and each browser configured in advance, to obtain a compatibility analysis result corresponding to each browser, includes:
determining page attribute information of a page to be accessed corresponding to the website to be accessed;
and comparing the page attribute information with the preset browser attribute information corresponding to each browser, and determining to obtain a compatibility analysis result of the page to be accessed and each browser.
In an optional embodiment of the present application, after comparing the page attribute information with the browser attribute information corresponding to each browser configured in advance, and determining that a compatibility analysis result between the page to be accessed and each browser is obtained, the method further includes:
scoring the compatibility analysis result corresponding to each browser based on a pre-configured compatibility scoring model to obtain the compatibility score of each browser on the page to be accessed;
correspondingly, determining the browser with the optimal compatibility in each compatibility analysis result as a target browser, including:
and determining the browser corresponding to the highest value in all the compatibility scores as a target browser.
In an optional embodiment of the present application, the method further comprises:
rendering the page to be accessed based on each browser to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
and sending the page thumbnails corresponding to the browsers to the user side.
In an optional embodiment of the present application, the method further comprises:
and updating at least one of the compatibility analysis result of each browser for the page to be accessed and the generated page thumbnail to a pre-configured compatibility database.
In an optional embodiment of the present application, the receiving a website to be visited sent by a user side includes:
acquiring an initial website to be accessed sent by a user side;
and extracting a path of a preset address level in the initial website to be accessed as the website to be accessed.
In a second aspect of the embodiments of the present application, a method for determining a browser kernel is provided, where the method includes:
receiving a website to be accessed sent by a user side;
rendering a page to be accessed corresponding to the website to be accessed based on each pre-configured browser to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
and sending each page thumbnail to the user side so that the user can select the kernel of the target browser for accessing the website to be accessed according to each page thumbnail at the user side.
In a third aspect of the embodiments of the present application, there is provided a browser kernel determining apparatus, including:
the first receiving module is used for receiving the website to be accessed sent by the user side;
the analysis module is used for respectively carrying out compatibility analysis on the page to be accessed corresponding to the website to be accessed and each browser configured in advance to obtain a compatibility analysis result corresponding to each browser;
the determining module is used for determining the browser with the optimal compatibility in each compatibility analysis result as a target browser;
the first sending module is used for sending the browser identifier corresponding to the target browser to the user side so as to indicate the user side to load a page to be accessed corresponding to the website to be accessed based on the kernel of the target browser; or the like, or a combination thereof,
in an optional embodiment of the present application, the analysis module is specifically configured to:
determining page attribute information of a page to be accessed corresponding to the website to be accessed;
and comparing the page attribute information with the preset browser attribute information corresponding to each browser, and determining to obtain a compatibility analysis result of the page to be accessed and each browser.
In an optional embodiment of the present application, the analysis module is further configured to:
scoring the compatibility analysis result corresponding to each browser based on a pre-configured compatibility scoring model to obtain the compatibility score of each browser on the page to be accessed;
correspondingly, the determining module is configured to:
and determining the browser corresponding to the highest value in all the compatibility scores as a target browser.
In an optional embodiment of the present application, the first sending module is further configured to:
rendering the page to be accessed based on each browser to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
and sending the page thumbnails corresponding to the browsers to the user side.
In an optional embodiment of the present application, the analysis module is further configured to:
and updating at least one of the compatibility analysis result of each browser for the page to be accessed and the generated page thumbnail to a pre-configured compatibility database.
In an optional embodiment of the present application, the first receiving module is configured to:
acquiring an initial website to be accessed sent by a user side;
and extracting a path of a preset address level in the initial website to be accessed as the website to be accessed.
In a fourth aspect of the embodiments of the present application, there is provided a browser kernel determining apparatus, including:
the second receiving module is used for receiving the website to be accessed sent by the user side;
the rendering module is used for rendering a page to be accessed corresponding to the website to be accessed based on each pre-configured browser to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
and the second sending module is used for sending each page thumbnail to the user side so that the user can select the kernel of the target browser for accessing the website to be accessed according to each page thumbnail at the user side.
In a fifth aspect of embodiments of the present application, there is provided a computer device, including: comprising a memory storing a computer program and a processor implementing the steps of the method as claimed in any one of the above when the processor executes the computer program.
In a sixth aspect of the embodiments of the present application, there is provided a computer-readable storage medium on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method as in any one of the above.
According to the method and the device, firstly, the website to be accessed sent by the user side is received, then after the server side performs compatibility analysis on the page to be accessed corresponding to the website to be accessed and the pre-configured browsers to obtain the compatibility analysis results corresponding to the browsers, the browser with the optimal compatibility is selected from the multiple compatibility analysis results to serve as the target browser, and finally the browser identifier of the target browser is sent to the user side, so that the user side can load the page to be accessed corresponding to the website to be accessed based on the kernel of the target browser, automatic switching of the kernel is achieved, the efficiency is higher, the technical problem that the kernel switching efficiency in the existing dual-kernel browser is lower is solved, and the technical effect of improving the kernel switching efficiency is achieved; meanwhile, the target browser is determined at the server side, so that the processes that the user side carries out preloading or compatibility analysis on the page to be accessed in each browser are avoided, the computing resources of the user side are saved, and the efficiency of loading the page to be accessed by the user side is further improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic application scenario diagram of a browser kernel determining method according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for determining a browser kernel according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for determining a browser kernel according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for determining a browser kernel according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for determining a browser kernel according to an embodiment of the present application;
fig. 6 is a flowchart of a method for determining a browser kernel according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a browser kernel determining apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a browser kernel determining apparatus according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In the process of implementing the application, the inventor finds that the kernel switching efficiency in the current dual-core browser is low. In view of the foregoing problems, an embodiment of the present invention provides a method for determining a browser kernel, so as to improve efficiency of determining a browser kernel.
The scheme in the embodiment of the application can be implemented by adopting various computer languages, such as object-oriented programming language Java and transliterated scripting language JavaScript.
In order to make the technical solutions and advantages of the embodiments of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and are not exhaustive of all embodiments. It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict.
The browser can be generally divided into a shell and a kernel, wherein the shell is relatively more in variety, and is mainly used for providing a user interface for a user so as to facilitate the user to call the kernel to execute corresponding functions, such as menus, toolbars and the like, based on corresponding operations; the kernel is the core of the browser, and is a program or a module for displaying content based on a markup language, and is used for executing different execution operations.
For example, a dual-core browser generally refers to a browser having two cores, a Blink (a browser core) core of a chrome (a web browser) and a Trident (a browser core) core of an IE (a web browser), and can complete rendering of a web page by switching different cores with each other, thereby solving the problem of page compatibility caused by different browser development technologies. At present, the switching mode of the dual-core browser kernel mainly comprises the following steps: judging whether the browser version information exists in the page or not, if yes, switching to a kernel specified in the browser version information, and if not, calling a default kernel to render the page. However, in this way, a kernel switching policy needs to be manually set at the server, and when a new page is loaded each time, the information of the page needs to be compared with the configured kernel policies one by one, which takes a long time. Therefore, the kernel switching efficiency in the current dual-kernel browser is low.
Referring to fig. 1, an application environment of the browser kernel determining method provided in the embodiment of the present application at least includes: a user terminal 110 and a service terminal 120. The user terminal 110 is a terminal used by a user, and at least one browser with two or more cores, such as Blink and Trident, is configured in the user terminal, and the browser can automatically switch or manually switch the cores of the browser in an automatic or manual manner when loading a page, so as to meet different page loading requirements. The user terminal 110 may be any form of electronic device, such as a personal notebook computer, a tablet computer, and a mobile phone, and the embodiment of the present invention is not limited in any way. The server 120 refers to a management terminal for controlling the plurality of clients 110, and the server 120 in this embodiment may be one server, or a server cluster or cloud equipment formed by a plurality of servers, and the like. In addition, if the server 120 is a cloud service, a server node may be selected in the cloud service cluster as a background management node, and some transactions in the cloud service cluster that need to be processed in a centralized manner, or information or data that needs to be shared by each service node may be configured in the background management node, so as to achieve the purpose of sharing and processing in a centralized manner.
The following description will be given by taking the server as an execution subject, applying the method for determining a browser kernel to the server, and determining a target kernel required when a page to be accessed is loaded from a multi-kernel browser as an example. Referring to fig. 2, a method for determining a browser kernel provided in the embodiment of the present application includes the following steps 201 to 204:
When a user needs to access or load a certain webpage or a certain page, the user first sends the webpage or a website corresponding to the webpage to a server through a protocol or the like, wherein the webpage or the webpage is a page to be accessed, which needs to be accessed, and the corresponding address of the page to be accessed is the website to be accessed.
The compatibility analysis method at the server side in the embodiment of the application includes, but is not limited to, the following methods: preloading the page to be accessed in different browsers; comparing the attribute information of the page to be accessed with the attribute information corresponding to each browser; and automatically analyzing the compatibility of the page to be accessed in each browser based on a preset configured compatibility automatic analysis program and the like. The compatibility analysis result may be characterized in various manners, such as a qualitative judgment result of "compatibility" and "incompatibility", a specific compatibility score, or a comparison result of each compatibility attribute information, and the like.
And step 203, determining the browser with the optimal compatibility in each compatibility analysis result as a target browser.
And one browser corresponds to one compatibility analysis result, and the service terminal selects the browser with the highest score or the optimal comprehensive evaluation from the multiple compatibility analysis results as a target browser for loading the page to be accessed.
And 204, sending the browser identifier corresponding to the target browser to the user side so as to instruct the user side to load the page to be accessed corresponding to the website to be accessed based on the kernel of the target browser.
The browser identifier is used to distinguish different browsers, and may be, for example, a browser name, a version number, or a preset number, and the like, for example, IE6, IE8, IE10, chrome, and the like, which is not specifically limited in this embodiment of the present application. And the user side switches the kernel after receiving the browser identifier of the target browser, switches the current kernel of the browser to the kernel of the target browser, and loads the page to be accessed under the kernel.
According to the method and the device, firstly, a website to be accessed sent by a user side is received, then compatibility analysis is carried out on a page to be accessed corresponding to the website to be accessed and each browser configured in advance at a server side to obtain a compatibility analysis result corresponding to each browser, a browser with the optimal compatibility is selected from a plurality of compatibility analysis results to serve as a target browser, and finally a browser identifier of the target browser is sent to the user side, so that the user side can load the page to be accessed corresponding to the website to be accessed based on a kernel of the target browser, automatic switching of the kernel is achieved, efficiency is higher, the technical problem that switching efficiency of the kernel in the existing dual-core browser is lower is solved, and the technical effect of improving switching efficiency of the kernel is achieved; meanwhile, the target browser is determined at the server side, so that the processes that the user side carries out preloading or compatibility analysis on the page to be accessed in each browser and the like are avoided, computing resources of the user side are saved, and the efficiency of loading the page to be accessed by the user side is further improved.
Referring to fig. 3, in an optional embodiment of the present application, in step 202, performing compatibility analysis on the to-be-accessed page corresponding to the to-be-accessed website and each browser configured in advance to obtain a compatibility analysis result corresponding to each browser includes the following steps 301 to 302:
The page attribute information includes, for example: the extension tools, various plug-in information, compatible formats and the like are not exhaustive, and can be specifically set according to actual conditions.
The browser attribute information corresponding to each browser may include, for example: compatible format, compatible plug-in information and the like, and the server compares the attribute of each browser with the page attribute information determined in the step 301 to determine whether the page attribute information is matched with the corresponding browser attribute information, so as to obtain a comparison result for each attribute information, and the comparison result is used as the compatibility analysis result.
According to the method and the device for determining the compatibility of the browser, the page attribute information of the page to be accessed corresponding to the website to be accessed is determined, the page attribute information is compared with the browser attribute information corresponding to each browser which is configured in advance, the compatibility analysis results of the page to be accessed and each browser are determined, the page attributes are compared one by one, the comparison results are more reliable, the target browser determined based on the compatibility analysis results is more reliable, and the reliability of the method for determining the browser kernel provided by the embodiment of the application is further improved.
In an optional embodiment of the present application, after the step 302 of comparing the page attribute information with the browser attribute information corresponding to each browser configured in advance, and determining to obtain the compatibility analysis result between the page to be accessed and each browser, the method for determining the browser kernel further includes the following steps:
and scoring the compatibility analysis result corresponding to each browser based on a pre-configured compatibility scoring model to obtain the compatibility score of each browser on the page to be accessed.
The compatibility scoring model is used for scoring according to different categories of page attribute information to determine sub-scores corresponding to each category of page attribute information, and then determining the total compatibility score of the page to be accessed in the browser according to all the sub-scores of the page to be accessed in the browser. The compatibility scoring model may be specifically set according to actual conditions, for example, a higher weighting factor may be configured for some important page attribute information, for example, a browser type set in the page, and a relatively lower weighting factor may be configured for other page attribute information.
Correspondingly, step 203, determining the browser with the optimal compatibility in each compatibility analysis result as the target browser, includes the following steps:
and determining the browser corresponding to the highest value in all the compatibility scores as a target browser.
And one browser corresponds to one compatibility score, and the browser with the highest score is determined as the target browser.
According to the method and the device, the compatibility analysis results corresponding to the browsers are scored based on the preconfigured compatibility scoring model, the compatibility scores of the pages to be accessed of the browsers are obtained, and the same scoring model is adopted for different browsers, so that the obtained compatibility scores are higher in objectivity; meanwhile, the browser corresponding to the highest value in all the compatibility scores is determined as the target browser, and the obtained target browser is higher in reliability.
Referring to fig. 4, in an optional embodiment of the present application, the method for determining a browser kernel further includes the following steps 401 to 402:
The page thumbnail refers to a page display image which is rendered or preloaded in a browser of a page to be accessed.
And 402, sending each page thumbnail corresponding to each browser to a user side.
In the step 204, on the basis of sending the browser identifier of the target browser to the user side, the page thumbnail obtained by rendering the page to be accessed in each browser can be sent to the user side, so that when an accident such as a fault of the target browser is determined due to a system fault and the like, the user selects a required browser kernel at the user side in a manual mode according to an actual situation, thereby ensuring the reliability of kernel switching and further ensuring smooth loading of the page to be accessed.
In an optional embodiment of the present application, the method for determining a browser kernel further includes the following steps:
and updating at least one of the compatibility analysis result of each browser for the page to be accessed and the generated page thumbnail to a pre-configured compatibility database.
After obtaining the compatibility analysis result and the page thumbnail, the server may add at least one of the compatibility analysis result and the page thumbnail to a pre-configured compatibility database, where the compatibility analysis result and the corresponding page thumbnail in each browser for different pages to be accessed are stored in the compatibility database. The compatibility database may be configured in any server node in the server side or in any server, and the embodiment of the present application is not particularly limited. When the user side needs to load the page to be accessed next time or other user sides need to load the page to be accessed, the optimal target browser can be directly selected from the compatibility database, the page thumbnails can be extracted, the efficiency is higher, and the reliability of the browser kernel determining method provided by the embodiment of the application is further improved.
In an optional embodiment, when receiving a website to be accessed sent by a user, a server may first query from the compatibility database, and if the compatibility database includes a compatibility analysis result of a page to be accessed corresponding to the website to be accessed in each browser and a corresponding page thumbnail, a target browser may be directly determined from the compatibility analysis result and each page thumbnail may be extracted and obtained.
Referring to fig. 5, in an optional embodiment of the present application, the step 201 of receiving the website to be visited sent by the user side includes the following steps 501 to 502:
The initial website to be visited refers to an original website sent by a user terminal and needing to be visited, and the initial website to be visited may include a plurality of address levels, for example, https:// www.
The preset address level can be specifically set according to the actual situation, for example, one address level, or two address levels, etc. For example, if the preset address hierarchy is an address hierarchy, the target address to be visited after the initial address to be visited https:// www.jianshu.com/p/93cec6397e28 performs address hierarchy extraction is: https:// www.jianshu.com, and so on, just for example.
According to the method and the device, after the initial website to be visited sent by the user side is obtained, the path of the preset address level in the initial website to be visited is extracted to serve as the website to be visited, the character length of the website to be visited can be shortened, and the efficiency of data transmission between the user side and the server side is improved; once the website corresponding to the first address level is compatible in the browser, the websites corresponding to other address levels are generally compatible in the browser, so that the efficiency of performing compatibility analysis on the page to be accessed can be greatly improved by the method.
Another embodiment of the present application provides another method for determining a browser kernel, which is described below with the server as an execution subject, and by applying the method for determining a browser kernel to the server, a target kernel required when a page to be accessed is loaded is determined from a multi-kernel browser as an example. Referring to fig. 6, the method for determining a browser kernel provided in the embodiment of the present application includes the following steps 601 to 603:
and 603, sending each page thumbnail to the user side so that the user can select the kernel of the target browser for accessing the website to be accessed according to each page thumbnail at the user side.
For example, page thumbnails of all browsers are displayed in a toolbar pull-down list of a dual-core browser or a multi-core browser at a user side, a user selects the page thumbnails by himself according to the display result of each page thumbnail, and after selection, the browser kernel is switched to the browser kernel corresponding to the selected page thumbnail.
According to the method and the device, the page thumbnail of the page to be accessed in each browser is obtained firstly, then the page thumbnail is sent to the user side, the user can determine the kernel of the target browser which is actually needed based on a manual switching mode at the user side, and the flexibility is higher.
It should be understood that, although the steps in the flowchart are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 7, in order to implement the method for determining a browser kernel, an embodiment of the present application provides a device 700 for determining a browser kernel, where the device 700 is applied to a server, and includes:
a first receiving module 710, configured to receive a website to be accessed sent by a user end;
the analysis module 720 is configured to perform compatibility analysis on the page to be accessed corresponding to the website to be accessed and each browser configured in advance, so as to obtain a compatibility analysis result corresponding to each browser;
a determining module 730, configured to determine a browser with optimal compatibility in each compatibility analysis result as a target browser;
the first sending module 740 is configured to send the browser identifier corresponding to the target browser to the user side, so as to instruct the user side to load a page to be accessed corresponding to the website to be accessed based on the kernel of the target browser;
in an optional embodiment of the present application, the analyzing module 720 is specifically configured to determine page attribute information of a page to be accessed corresponding to the website to be accessed; and comparing the page attribute information with the preset browser attribute information corresponding to each browser, and determining to obtain a compatibility analysis result of the page to be accessed and each browser.
In an optional embodiment of the present application, the determining module 730 is further configured to score the compatibility analysis result corresponding to each browser based on a preconfigured compatibility scoring model, so as to obtain a compatibility score of each browser on a page to be accessed; and determining the browser corresponding to the highest value in all the compatibility scores as a target browser.
In an optional embodiment of the present application, the first sending module 740 is further configured to render the page to be accessed based on each browser, so as to obtain a page thumbnail obtained by rendering the page to be accessed in each browser; and sending the page thumbnails corresponding to the browsers to the user side.
In an optional embodiment of the present application, the determining module 730 is further configured to update at least one of the compatibility analysis result and the generated page thumbnail of each browser for the page to be accessed to a pre-configured compatibility database.
In an optional embodiment of the present application, the first receiving module 710 is specifically configured to obtain an initial website to be visited, which is sent by a user side; and extracting a path of a preset address level in the initial website to be accessed as the website to be accessed.
Referring to fig. 8, in order to implement the method for determining a browser kernel, an embodiment of the present application provides a browser kernel determining apparatus 800, which is applied to a server, where the browser kernel determining apparatus 800 includes:
a second receiving module 810, configured to receive a website to be accessed, sent by a user side;
a rendering module 820, configured to render, based on each preconfigured browser, a page to be accessed corresponding to the website to be accessed, respectively, to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
the second sending module 830 is configured to send each page thumbnail to the user side, so that the user selects, at the user side, a kernel of a target browser that accesses a website to be accessed according to each page thumbnail.
For specific limitations of the browser kernel determining apparatus, reference may be made to the above limitations of the browser kernel determining method, which is not described herein again. The various modules in the browser core determining apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a browser kernel determination method as above. The method comprises the following steps: the browser kernel determining method comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize any step of the browser kernel determining method.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out any of the above browser kernel determination methods.
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 so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. A browser kernel determining method is applied to a server side and comprises the following steps:
receiving a website to be accessed sent by a user side;
respectively carrying out compatibility analysis on the page to be accessed corresponding to the website to be accessed and each browser configured in advance to obtain a compatibility analysis result corresponding to each browser;
determining the browser with the optimal compatibility in each compatibility analysis result as a target browser;
and sending the browser identifier corresponding to the target browser to the user side so as to instruct the user side to load the page to be accessed corresponding to the website to be accessed based on the kernel of the target browser.
2. The method for determining the browser kernel according to claim 1, wherein the performing compatibility analysis on the page to be accessed corresponding to the website to be accessed and the pre-configured browsers respectively to obtain the compatibility analysis result corresponding to each browser comprises:
determining page attribute information of the page to be accessed corresponding to the website to be accessed;
and comparing the page attribute information with preset browser attribute information corresponding to each browser, and determining to obtain the compatibility analysis result of the page to be accessed and each browser.
3. The method for determining the browser kernel according to claim 2, wherein after the page attribute information is respectively compared with the browser attribute information corresponding to each browser configured in advance, and the compatibility analysis result between the page to be accessed and each browser is determined to be obtained, the method further comprises:
scoring the compatibility analysis result corresponding to each browser based on a pre-configured compatibility scoring model to obtain the compatibility score of each browser on the page to be accessed;
correspondingly, the determining, as a target browser, a browser with optimal compatibility in each compatibility analysis result includes:
and determining the browser corresponding to the highest value in each compatibility score as the target browser.
4. The method of claim 1, further comprising:
rendering the page to be accessed based on each browser to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
and sending each page thumbnail corresponding to each browser to the user side.
5. The browser kernel determination method of claim 4, further comprising:
and updating at least one of the compatibility analysis result and the generated page thumbnail of each browser aiming at the page to be accessed to a pre-configured compatibility database.
6. A browser kernel determining method is applied to a server side and comprises the following steps:
receiving a website to be accessed sent by a user side;
rendering the page to be accessed corresponding to the website to be accessed based on each preset browser to obtain a page thumbnail obtained by rendering the page to be accessed in each browser;
and sending each page thumbnail to the user side so that a user can select a kernel of a target browser for accessing the website to be accessed according to each page thumbnail at the user side.
7. A browser kernel determination apparatus, comprising:
the first receiving module is used for receiving the website to be accessed sent by the user side;
the analysis module is used for respectively carrying out compatibility analysis on the page to be accessed corresponding to the website to be accessed and each browser configured in advance to obtain a compatibility analysis result corresponding to each browser;
the determining module is used for determining the browser with the optimal compatibility in each compatibility analysis result as a target browser;
and the first sending module is used for sending the browser identifier corresponding to the target browser to the user side so as to instruct the user side to load the page to be accessed corresponding to the website to be accessed based on the kernel of the target browser.
8. A browser kernel determination apparatus, comprising:
the second receiving module is used for receiving the website to be accessed sent by the user side;
the rendering module is used for rendering the page to be accessed corresponding to the website to be accessed based on each browser which is configured in advance to obtain a page thumbnail which is obtained by rendering the page to be accessed in each browser;
and the second sending module is used for sending each page thumbnail to the user side so that a user can select the kernel of the target browser for accessing the website to be accessed according to each page thumbnail at the user side.
9. A computer device, comprising: comprising a memory and a processor, said memory storing a computer program, characterized in that said processor realizes the steps of the method according to any one of claims 1 to 6 when executing said computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211070597.8A CN115470426B (en) | 2022-09-02 | 2022-09-02 | Browser kernel determination method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211070597.8A CN115470426B (en) | 2022-09-02 | 2022-09-02 | Browser kernel determination method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115470426A true CN115470426A (en) | 2022-12-13 |
CN115470426B CN115470426B (en) | 2023-07-21 |
Family
ID=84369802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211070597.8A Active CN115470426B (en) | 2022-09-02 | 2022-09-02 | Browser kernel determination method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115470426B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116992183A (en) * | 2023-09-26 | 2023-11-03 | 国网信息通信产业集团有限公司 | Domestic browser adaptation compatible method based on deep learning technology |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156709A (en) * | 2011-02-28 | 2011-08-17 | 奇智软件(北京)有限公司 | Browser engine mode switching method |
US20120210231A1 (en) * | 2010-07-15 | 2012-08-16 | Randy Ubillos | Media-Editing Application with Media Clips Grouping Capabilities |
CN102929944A (en) * | 2012-09-28 | 2013-02-13 | 北京奇虎科技有限公司 | Method and device for web page rendering by IE (Internet Explorer) kernel browser |
CN103176977A (en) * | 2011-12-20 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Page loading method, page loading system and browser |
CN103500194A (en) * | 2013-09-17 | 2014-01-08 | 北京奇虎科技有限公司 | Method, device and browser for loading webpage |
CN103631942A (en) * | 2013-12-10 | 2014-03-12 | 贝壳网际(北京)安全技术有限公司 | Method and device for accessing webpage and browser |
CN104978186A (en) * | 2015-05-26 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Interface skin rendering method and apparatus |
CN107045501A (en) * | 2016-02-05 | 2017-08-15 | 腾讯科技(深圳)有限公司 | A kind of Web access method and device |
CN107423389A (en) * | 2017-07-20 | 2017-12-01 | 努比亚技术有限公司 | A kind of webpage reduced graph generating method, device and computer-readable recording medium |
CN108388628A (en) * | 2018-02-12 | 2018-08-10 | 腾讯科技(深圳)有限公司 | The method and device that web-page audio plays |
CN112445599A (en) * | 2020-12-14 | 2021-03-05 | 招商局金融科技有限公司 | Browser kernel automatic switching method, device, equipment and storage medium |
-
2022
- 2022-09-02 CN CN202211070597.8A patent/CN115470426B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120210231A1 (en) * | 2010-07-15 | 2012-08-16 | Randy Ubillos | Media-Editing Application with Media Clips Grouping Capabilities |
CN102156709A (en) * | 2011-02-28 | 2011-08-17 | 奇智软件(北京)有限公司 | Browser engine mode switching method |
CN103176977A (en) * | 2011-12-20 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Page loading method, page loading system and browser |
CN102929944A (en) * | 2012-09-28 | 2013-02-13 | 北京奇虎科技有限公司 | Method and device for web page rendering by IE (Internet Explorer) kernel browser |
CN103500194A (en) * | 2013-09-17 | 2014-01-08 | 北京奇虎科技有限公司 | Method, device and browser for loading webpage |
CN103631942A (en) * | 2013-12-10 | 2014-03-12 | 贝壳网际(北京)安全技术有限公司 | Method and device for accessing webpage and browser |
CN104978186A (en) * | 2015-05-26 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Interface skin rendering method and apparatus |
CN107045501A (en) * | 2016-02-05 | 2017-08-15 | 腾讯科技(深圳)有限公司 | A kind of Web access method and device |
CN107423389A (en) * | 2017-07-20 | 2017-12-01 | 努比亚技术有限公司 | A kind of webpage reduced graph generating method, device and computer-readable recording medium |
CN108388628A (en) * | 2018-02-12 | 2018-08-10 | 腾讯科技(深圳)有限公司 | The method and device that web-page audio plays |
CN112445599A (en) * | 2020-12-14 | 2021-03-05 | 招商局金融科技有限公司 | Browser kernel automatic switching method, device, equipment and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116992183A (en) * | 2023-09-26 | 2023-11-03 | 国网信息通信产业集团有限公司 | Domestic browser adaptation compatible method based on deep learning technology |
CN116992183B (en) * | 2023-09-26 | 2024-01-09 | 国网信息通信产业集团有限公司 | Domestic browser adaptation compatible method based on deep learning technology |
Also Published As
Publication number | Publication date |
---|---|
CN115470426B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11403364B2 (en) | Method and terminal device for extracting web page content | |
US10325009B2 (en) | Method and apparatus for using custom component parsing engine to parse tag of custom component | |
US10733259B2 (en) | Web page access method and apparatus | |
EP3273362A1 (en) | Webpage access method, apparatus, device and non-volatile computer storage medium | |
CN110941779B (en) | Page loading method and device, storage medium and electronic equipment | |
CN111666497A (en) | Application program loading method and device, electronic equipment and readable storage medium | |
CN110580189A (en) | method and device for generating front-end page, computer equipment and storage medium | |
CN105183890B (en) | Webpage loading method based on browser and browser device | |
EP4198773A1 (en) | Image processing method and apparatus, and computer readable storage medium | |
CN111444455A (en) | Browser compatible method, system, computer device and storage medium | |
CN112612982A (en) | Webpage preloading method and device and computer equipment | |
CN105550206A (en) | Version control method and device for structured query language | |
CN115470426B (en) | Browser kernel determination method, device, computer equipment and storage medium | |
CN110866202A (en) | Front-end paging method and device and readable storage medium | |
CN106815037B (en) | Application function execution method and device | |
TW201525740A (en) | Method and device for displaying web page and computer-readable storage medium | |
CN113536168B (en) | Component processing method and device | |
CN113282591B (en) | Authority filtering method, authority filtering device, computer equipment and storage medium | |
US20210397646A1 (en) | Method, electronic device, and storage medium for processing visual data of deep model | |
EP2998885A1 (en) | Method and device for information search | |
CN111767053A (en) | Front-end page data acquisition method and device | |
WO2014019467A1 (en) | A web browser operation method and system | |
CN116661936A (en) | Page data processing method and device, computer equipment and storage medium | |
CN115145674A (en) | Page jump method, device, equipment and medium based on dynamic anchor point | |
CN115186207A (en) | Method and device for loading page resources and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |