CN114491221A - Browser kernel determination method and device - Google Patents

Browser kernel determination method and device Download PDF

Info

Publication number
CN114491221A
CN114491221A CN202210143450.0A CN202210143450A CN114491221A CN 114491221 A CN114491221 A CN 114491221A CN 202210143450 A CN202210143450 A CN 202210143450A CN 114491221 A CN114491221 A CN 114491221A
Authority
CN
China
Prior art keywords
kernel
target
webpage
preset
browser
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.)
Pending
Application number
CN202210143450.0A
Other languages
Chinese (zh)
Inventor
陶建宇
唐剑锋
王沛瑶
何显阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Ninestar Technology Joint Stock Co ltd
Original Assignee
Beijing Ninestar Technology Joint Stock Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ninestar Technology Joint Stock Co ltd filed Critical Beijing Ninestar Technology Joint Stock Co ltd
Priority to CN202210143450.0A priority Critical patent/CN114491221A/en
Publication of CN114491221A publication Critical patent/CN114491221A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

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 method and a device for determining a browser kernel, wherein a browser interface of a target browser is provided through terminal equipment, and the method comprises the following steps: responding to a touch operation of opening a target webpage on the browser interface, and acquiring website information of the target webpage; acquiring a preset kernel corresponding relation, wherein the preset kernel corresponding relation is used for indicating starting kernels corresponding to a plurality of preset webpages; determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel corresponding relation; and rendering the webpage content of the target webpage according to the target kernel, and displaying the webpage content on the browser interface. The method can improve the adaptability of the target webpage and the rendering kernel of the target browser, and improve the display effect of the target webpage.

Description

Browser kernel determination method and device
Technical Field
The embodiment of the application relates to the technical field of internet, in particular to a method and a device for determining a browser kernel.
Background
A dual-core browser refers to a browser that internally contains two rendering kernels, such as an IE kernel and a Chrome kernel.
For a webpage, only one of two rendering kernels of the dual-core browser can render and typeset the webpage, different rendering kernels are suitable for different webpages, and webpage content is rendered by selecting a proper rendering kernel, so that a better display effect can be achieved.
When the dual-core browser is used for rendering and typesetting a webpage at present, one rendering kernel is generally randomly selected for rendering and typesetting, and the selected rendering kernel has low suitability with the webpage, so that the display effect is poor.
Disclosure of Invention
The embodiment of the application provides a browser kernel determining method and device, and aims to solve the problem that the display effect of a webpage in a browser is poor due to the fact that the rendering kernel is not high in adaptability to the webpage.
In a first aspect, an embodiment of the present application provides a method for determining a browser kernel, where a browser interface of a target browser is provided through a terminal device, and the method includes:
responding to a touch operation of opening a target webpage on the browser interface, and acquiring website information of the target webpage;
acquiring a preset kernel corresponding relation, wherein the preset kernel corresponding relation is used for indicating starting kernels corresponding to a plurality of preset webpages;
determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel corresponding relation;
and rendering the webpage content of the target webpage according to the target kernel, and displaying the webpage content on the browser interface.
In a possible implementation manner, determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel correspondence includes:
acquiring the affiliation of the target webpage and the preset webpages according to the website information, wherein the affiliation is used for indicating that the target webpage belongs to the preset webpages or the target webpage does not belong to the preset webpages;
and determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel corresponding relationship and the website information.
In a possible embodiment, the affiliation indicates that the target web page belongs to the plurality of preset web pages; determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel correspondence relationship, and the website information, including:
determining a starting kernel corresponding to a preset webpage to which the target webpage belongs according to the preset kernel corresponding relation, wherein the starting kernel corresponding to the preset webpage to which the target webpage belongs is the first kernel or the second kernel;
and determining a starting inner core corresponding to a preset webpage to which the target webpage belongs as the target inner core.
In a possible embodiment, the affiliation indicates that the target web page does not belong to the plurality of preset web pages; determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel correspondence relationship, and the website information, including:
acquiring user login information of the terminal equipment;
and determining the target kernel in the first kernel and the second kernel according to the user login information and the website information.
In a possible implementation manner, determining the target kernel in the first kernel and the second kernel according to the user login information and the website information includes:
acquiring a historical login webpage of the target browser and a starting kernel corresponding to the historical login webpage according to the user login information;
acquiring a corresponding login result according to the historical login webpage and the target webpage, wherein the login result is used for indicating that the target webpage belongs to the historical login webpage or that the target webpage does not belong to the historical login webpage;
and determining the target kernel in the first kernel and the second kernel according to the login result, at least one item of the starting kernel corresponding to the historical login webpage and the website information.
In a possible implementation manner, the login result is used for indicating that the target webpage belongs to the historical login webpage; determining the target kernel in the first kernel and the second kernel according to at least one of the login result, the start kernel corresponding to the historical login webpage and the website information, including:
determining a historical starting kernel when the target webpage is started on the target browser according to the historical login webpage to which the target webpage belongs and the starting kernels corresponding to the historical login webpages;
and determining a historical starting kernel of the target webpage when the target webpage is started on the target browser as the target kernel.
In a possible implementation, the login result is used to indicate that the target webpage does not belong to the historical login webpage; determining the target kernel in the first kernel and the second kernel according to at least one of the login result, the start kernel corresponding to the historical login webpage and the website information, including:
acquiring at least one webpage keyword of the target webpage according to the website information;
and determining the target kernel in the first kernel and the second kernel according to the at least one webpage keyword.
In a second aspect, an embodiment of the present application provides a device for determining a browser kernel, where a browser interface of a target browser is provided through a terminal device, and the device includes:
the first acquisition module is used for responding to touch operation of opening a target webpage on the browser interface and acquiring website information of the target webpage;
the second obtaining module is used for obtaining a preset kernel corresponding relation, and the preset kernel corresponding relation is used for indicating starting kernels corresponding to a plurality of preset webpages;
the determining module is used for determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel corresponding relation;
and the processing module is used for rendering the webpage content of the target webpage according to the target kernel and displaying the webpage content on the browser interface.
In a possible implementation, the determining module is specifically configured to:
acquiring the affiliation of the target webpage and the preset webpages according to the website information, wherein the affiliation is used for indicating that the target webpage belongs to the preset webpages or the target webpage does not belong to the preset webpages;
and determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel corresponding relationship and the website information.
In a possible embodiment, the affiliation indicates that the target web page belongs to the plurality of preset web pages; the determining module is specifically configured to:
determining a starting kernel corresponding to a preset webpage to which the target webpage belongs according to the preset kernel corresponding relation, wherein the starting kernel corresponding to the preset webpage to which the target webpage belongs is the first kernel or the second kernel;
and determining a starting inner core corresponding to a preset webpage to which the target webpage belongs as the target inner core.
In a possible embodiment, the affiliation indicates that the target web page does not belong to the plurality of preset web pages; the determining module is specifically configured to:
acquiring user login information of the terminal equipment;
and determining the target kernel in the first kernel and the second kernel according to the user login information and the website information.
In a possible implementation, the determining module is specifically configured to:
acquiring a historical login webpage of the target browser and a starting kernel corresponding to the historical login webpage according to the user login information;
acquiring a corresponding login result according to the historical login webpage and the target webpage, wherein the login result is used for indicating that the target webpage belongs to the historical login webpage or that the target webpage does not belong to the historical login webpage;
and determining the target kernel in the first kernel and the second kernel according to the login result, the starting kernel corresponding to the historical login webpage and at least one item of the website information.
In a possible implementation manner, the login result is used for indicating that the target webpage belongs to the historical login webpage; the determining module is specifically configured to:
determining a historical starting kernel when the target webpage is started on the target browser according to the historical login webpage to which the target webpage belongs and the starting kernels corresponding to the historical login webpages;
and determining a historical starting kernel of the target webpage when the target webpage is started on the target browser as the target kernel.
In a possible implementation, the login result is used to indicate that the target webpage does not belong to the historical login webpage; the determining module is specifically configured to:
acquiring at least one webpage keyword of the target webpage according to the website information;
and determining the target kernel in the first kernel and the second kernel according to the at least one webpage keyword.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the browser kernel determination method of any of the first aspects.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer executing instruction is stored, and when a processor executes the computer executing instruction, the method for determining a browser kernel according to any one of the first aspect is implemented.
According to the browser kernel determining method and device provided by the embodiment of the application, the terminal device provides the browser interface of the target browser, the terminal device responds to the touch operation of opening the target webpage on the browser interface, the website information of the target webpage is obtained, and then the preset kernel corresponding relation is obtained, so that the target kernel can be determined in the first kernel and the second kernel of the target browser according to the website information and the preset kernel corresponding relation. Aiming at the problem that the display effect of a webpage in a browser is poor due to low adaptability of a rendering kernel and the webpage, the website information is acquired according to the target webpage which needs to be opened, and therefore the target kernel is determined in the first kernel and the second kernel comprehensively according to the website information and the corresponding relation of the preset kernel. After the target kernel is determined, the terminal device may render the web page content of the target web page according to the target kernel, and display the web page content of the target web page on the browser interface. The target kernel is comprehensively determined according to the website information of the target webpage and the corresponding relation of the preset kernel, so that the adaptability of the target webpage and the rendering kernel of the target browser can be improved, and the display effect of the target webpage is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for determining a browser kernel according to an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating a process of determining a target kernel according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a browser kernel determining apparatus according to an embodiment of the present application;
fig. 5 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application, and as shown in fig. 1, a browser interface 11 of a target browser is displayed on a terminal device 10, where the target browser may provide a web page access function, and when a certain web page needs to be accessed, a web address may be input in a relevant area on the browser interface 11 for searching.
For example, in fig. 1, the web address "http: 123.123. com" may be input in the web address input box 12, and then the search control 13 is clicked, the browser interface 11 jumps to the corresponding web page according to the input web address.
The rendering of the web page content needs to be completed by the kernel of the browser, and for the single-kernel browser, because only one kernel of the single-kernel browser is provided, the rendering of the web page content can be completed only according to the only kernel. At present, with the iterative updating of the browser, the dual-core browser is widely applied.
The dual-core browser refers to a browser with two inner cores, wherein the emphasis points of the different inner cores are different, and the applicable web pages are also different. In the related art, when a certain webpage needs to be opened, one kernel is generally randomly selected from two kernels for rendering, or a fixed kernel is used for rendering by default, and switching of the kernels requires manual switching by a user.
The related technology cannot render the web page content for the more suitable kernel according to different web pages, so that the suitability of the selected rendering kernel and the web pages is not high, and the display effect is not good. Based on this, the embodiments of the present application provide a method for determining a browser kernel, and the following describes a scheme of the present application with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a method for determining a browser kernel according to an embodiment of the present application, where a browser interface of a target browser is provided by a terminal device, and as shown in fig. 2, the method may include:
s21, responding to the touch operation of opening the target webpage on the browser interface, and acquiring the website information of the target webpage.
The execution main body of the embodiment of the application is the terminal device, the terminal device can be a mobile phone, a computer, a tablet and the like, and a browser program can be run on the terminal device, so that a browser interface of a target browser is displayed.
The user may access the target web page through the target browser, for example, may enter the web address of the target web page within a browser interface search box of the target browser, and then click on the search. The terminal device responds to a touch operation of opening a target webpage on a browser interface, and acquires website information of the target webpage, wherein the website information may include a website or a domain name of the target webpage, for example.
And S22, acquiring a preset kernel corresponding relation, wherein the preset kernel corresponding relation is used for indicating the starting kernels corresponding to the preset webpages.
The preset kernel corresponding relationship is a preset corresponding relationship between the web pages and the kernels, and the preset kernel corresponding relationship indicates the starting kernels corresponding to the multiple preset web pages. The preset web page may be some specific web page or a web page with special requirements. For example, some financial-related web pages are more adapted to the first kernel, and some entertainment-related web pages are more adapted to the second kernel, and at this time, these web pages and the corresponding adapted kernels may be associated, that is, a preset kernel correspondence relationship is formed. For example, the preset web page may also be some web pages that can only be used with one type of kernel, and the preset web page cannot be rendered with another type of kernel, and at this time, the preset web page may be associated with a kernel that is supported by the preset web page only, that is, a preset kernel correspondence relationship is formed.
And S23, determining a target kernel in the first kernel and the second kernel of the target browser according to the corresponding relation between the website information and the preset kernel.
After the website information and the preset kernel corresponding relationship are obtained, the target kernel can be determined according to the website information and the preset kernel corresponding relationship.
The preset kernel correspondence indicates the startup kernels corresponding to the preset web pages, so that whether the target web page belongs to one of the preset web pages or not can be judged firstly, and if yes, the target kernel is determined comprehensively based on the website information and the preset kernel correspondence. For example, which kernel is adopted may be determined according to the website information, which kernel is adopted may be determined according to a preset kernel correspondence, and then the target kernel is determined in the first kernel and the second kernel according to the corresponding weight.
If the target webpage does not belong to one of the preset webpages, the target kernel can be determined according to the website information. For example, the domain name, the category, and the like of the target web page may be obtained according to the website information, and then the target kernel is determined in the first kernel and the second kernel according to the more adaptive kernels of different domain names and categories, and the like.
And S24, rendering the webpage content of the target webpage according to the target kernel, and displaying the webpage content on the browser interface.
After the target kernel is determined, the target kernel is used for rendering the webpage content of the target webpage, and the webpage content of the target webpage can be displayed on the browser interface after the webpage content of the target webpage is rendered according to the target kernel.
According to the browser kernel determining method provided by the embodiment of the application, the terminal device provides the browser interface of the target browser, the terminal device responds to the touch operation of opening the target webpage on the browser interface, the website information of the target webpage is obtained, and then the preset kernel corresponding relation is obtained, so that the target kernel can be determined in the first kernel and the second kernel of the target browser according to the website information and the preset kernel corresponding relation. Aiming at the problem that the display effect of a webpage in a browser is poor due to low adaptability of a rendering kernel and the webpage, the website information is acquired according to the target webpage which needs to be opened, and therefore the target kernel is determined in the first kernel and the second kernel comprehensively according to the website information and the corresponding relation of the preset kernel. After the target kernel is determined, the terminal device may render the web page content of the target web page according to the target kernel, and display the web page content of the target web page on the browser interface. The target kernel is comprehensively determined according to the website information of the target webpage and the corresponding relation of the preset kernel, so that the adaptability of the target webpage and the rendering kernel of the target browser can be improved, and the display effect of the target webpage is improved.
The following describes in detail the determination process of the target kernel in the solution of the present application on the basis of the above-mentioned embodiments.
Fig. 3 is a schematic flowchart of a process of determining a target kernel according to an embodiment of the present application, as shown in fig. 3, including:
and S31, acquiring the affiliation of the target webpage and a plurality of preset webpages according to the website information, wherein the affiliation is used for indicating that the target webpage belongs to the plurality of preset webpages, or the target webpage does not belong to the plurality of preset webpages.
The website information may include, for example, various information such as a website, a domain name, and a category of the target webpage, and the affiliations between the target webpage and a plurality of preset webpages may be obtained according to the website information. For example, the website of the target webpage is acquired according to the website information, and then the website of the target webpage is matched with the websites of the plurality of preset webpages to judge whether the target webpage belongs to the plurality of preset webpages, so that the affiliation relationship between the target webpage and the plurality of preset webpages is obtained.
And S32, determining a target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel corresponding relationship and the website information.
After the dependency relationship is obtained, the target kernel can be determined according to at least one of the dependency relationship, the preset kernel correspondence relationship and the website information. Since the affiliation may indicate that the target web page belongs to multiple preset web pages, or may indicate that the target web page does not belong to multiple preset web pages, the determination of the target kernel is described below with respect to different possible affiliations.
When the dependency relationship indicates that the target webpage belongs to the plurality of preset webpages, the preset kernel correspondence relationship indicates the start kernels corresponding to the plurality of preset webpages, so that the target kernel can be determined according to the preset kernel correspondence relationship.
Specifically, a target webpage is determined to be which preset webpage of a plurality of preset webpages, and then a starting kernel corresponding to the preset webpage to which the target webpage belongs is determined according to a preset kernel correspondence relationship, wherein the starting kernel is a first kernel or a second kernel. Furthermore, the starting kernel corresponding to the preset webpage to which the target webpage belongs can be determined as the target kernel.
To illustrate by an example, if the preset kernel correspondence indicates the start kernels corresponding to the web pages 1 to 3, where the start kernel corresponding to the web page 1 is the second kernel, the start kernel corresponding to the web page 2 is the second kernel, and the start kernel corresponding to the web page 3 is the first kernel. When the target webpage belongs to one of the webpages 1-3, the target webpage is determined to be the webpage 1-3, and then the target kernel is determined according to the preset kernel corresponding relation. For example, if the target webpage is the webpage 1, determining a starting kernel corresponding to the webpage 1 as a target kernel, namely a second kernel, according to a preset kernel corresponding relation; if the target webpage is the webpage 3, determining a starting kernel corresponding to the webpage 3 as a target kernel, namely a first kernel, according to a preset kernel corresponding relation.
When the dependency relationship indicates that the target webpage does not belong to the multiple preset webpages, the preset kernel correspondence relationship indicates that the starting kernels corresponding to the multiple preset webpages are included, and the effect of the preset kernel correspondence relationship on determining the target kernel is small.
Therefore, user login information of the terminal device may be first obtained, and the user login information may include, for example, information related to a user account that uses the terminal device to log in the target browser, which web pages the user account has logged in historically, which web pages the user account has logged in through, and the like. Therefore, after the user login information is obtained, the target kernel can be determined in the first kernel and the second kernel according to the user login information and the website information.
Specifically, after the user login information is obtained, the historical login webpage on the target browser and the startup kernel corresponding to the historical login webpage can be obtained according to the user login information. If the historical login webpage is accessed on the target browser for multiple times, the starting kernel corresponding to the historical login webpage accessed for multiple times can be obtained.
The following describes a scheme for acquiring a history starting kernel when each history login webpage is started on a target browser. If the history login webpage is logged in the target browser only once, the starting kernel at this time is used as the history starting kernel of the history login webpage.
If the history login webpage is logged in on the target browser for multiple times, a possible implementation manner is to use a larger number of start cores as the history start core of the history login webpage, for example, if the webpage 4 is logged in on the target browser for 5 times, where 1 start core is a first core and 4 start cores are second cores, the second core may be determined as the history start core of the webpage 4; another possible implementation manner is to use the start kernel that has logged in the history login webpage last time as the start kernel of the history login webpage.
And then, acquiring a corresponding login result according to the historical login webpage and the target webpage, wherein the login result is used for indicating that the target webpage belongs to the historical login webpage or that the target webpage does not belong to the historical login webpage. Different login results may correspond to different target kernels, and the terminal device may determine the target kernel in the first kernel and the second kernel according to the login result, at least one of the start kernel and the website information corresponding to the historical login webpage.
When the login result indicates that the target webpage belongs to the historical login webpage, the historical startup kernel of the target webpage when the target webpage is started on the target browser can be determined according to the historical login webpage to which the target webpage belongs and the startup kernels corresponding to the historical login webpages, and then the historical startup kernel of the target webpage when the target webpage is started on the target browser is determined as the target kernel.
For an example, if the history login web page includes web pages 4 to 6, the history startup kernel corresponding to the web page 4 is the second kernel, the history startup kernel corresponding to the web page 5 is the second kernel, and the history startup kernel corresponding to the web page 6 is the first kernel. When the target webpage belongs to one of the webpages 4-6, the target webpage is determined to be the webpage 4-6, and then the kernel is started according to the history of the history log-in webpage to determine the target kernel. For example, if the target webpage is webpage 4, starting an inner core according to the history corresponding to the webpage 4, and determining the second inner core as the target inner core; and if the target webpage is the webpage 6, starting an inner core according to the history corresponding to the webpage 6, determining the first inner core as the target inner core, and the like.
If the login result indicates that the target webpage does not belong to the historical login webpage, the target kernel cannot be determined according to the starting kernel corresponding to the historical login webpage, and at the moment, the target kernel can be determined according to the website information.
Specifically, at least one webpage keyword of a target webpage is obtained according to the website information. The website information may include, for example, information of a website, a category, and the like, and thus, related webpage keywords including a website, a domain name, a webpage category, and the like may be acquired according to the website information. After the webpage keywords are obtained, a target kernel can be determined in the first kernel and the second kernel according to the webpage keywords.
For example, if the web page keywords include financial related words, a core of the first core and the second core that is more suitable for the web page related to finance may be determined as a target core; if the webpage keywords include the security login related words, a kernel with higher adaptation degree to the webpage security in the first kernel and the second kernel can be determined as a target kernel, and the like.
According to the browser kernel determining method provided by the embodiment of the application, the terminal device provides the browser interface of the target browser, the terminal device responds to the touch operation of opening the target webpage on the browser interface, the website information of the target webpage is obtained, and then the preset kernel corresponding relation is obtained, so that the target kernel can be determined in the first kernel and the second kernel of the target browser according to the website information and the preset kernel corresponding relation. Aiming at the problem that the display effect of a webpage in a browser is poor due to low adaptability of a rendering kernel and the webpage, the website information is acquired according to the target webpage which needs to be opened, and therefore the target kernel is determined in the first kernel and the second kernel comprehensively according to the website information and the corresponding relation of the preset kernel. After the target kernel is determined, the terminal device may render the web page content of the target web page according to the target kernel, and display the web page content of the target web page on the browser interface. The target kernel is comprehensively determined according to the website information of the target webpage and the corresponding relation of the preset kernel, so that the adaptability of the target webpage and the rendering kernel of the target browser can be improved, and the display effect of the target webpage is improved.
Fig. 4 is a schematic structural diagram of a browser kernel determining apparatus provided in an embodiment of the present application, where a browser interface of a target browser is provided by a terminal device, and as shown in fig. 4, the browser kernel determining apparatus includes:
a first obtaining module 41, configured to obtain website information of a target webpage in response to a touch operation of opening the target webpage on the browser interface;
a second obtaining module 42, configured to obtain a preset kernel correspondence relationship, where the preset kernel correspondence relationship is used to indicate starting kernels corresponding to multiple preset webpages;
a determining module 43, configured to determine a target kernel in the first kernel and the second kernel of the target browser according to the website information and the preset kernel correspondence;
and the processing module 44 is configured to perform rendering processing on the web page content of the target web page according to the target kernel, and display the web page content on the browser interface.
In a possible implementation, the determining module 43 is specifically configured to:
acquiring the affiliation of the target webpage and the preset webpages according to the website information, wherein the affiliation is used for indicating that the target webpage belongs to the preset webpages or the target webpage does not belong to the preset webpages;
and determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel corresponding relationship and the website information.
In a possible embodiment, the affiliation indicates that the target web page belongs to the plurality of preset web pages; the determining module 43 is specifically configured to:
determining a starting kernel corresponding to a preset webpage to which the target webpage belongs according to the preset kernel corresponding relation, wherein the starting kernel corresponding to the preset webpage to which the target webpage belongs is the first kernel or the second kernel;
and determining a starting inner core corresponding to a preset webpage to which the target webpage belongs as the target inner core.
In a possible embodiment, the affiliation indicates that the target web page does not belong to the plurality of preset web pages; the determining module 43 is specifically configured to:
acquiring user login information of the terminal equipment;
and determining the target kernel in the first kernel and the second kernel according to the user login information and the website information.
In a possible implementation, the determining module 43 is specifically configured to:
acquiring a historical login webpage of the target browser and a starting kernel corresponding to the historical login webpage according to the user login information;
acquiring a corresponding login result according to the historical login webpage and the target webpage, wherein the login result is used for indicating that the target webpage belongs to the historical login webpage or that the target webpage does not belong to the historical login webpage;
and determining the target kernel in the first kernel and the second kernel according to the login result, the starting kernel corresponding to the historical login webpage and at least one item of the website information.
In a possible implementation manner, the login result is used for indicating that the target webpage belongs to the historical login webpage; the determining module 43 is specifically configured to:
determining a historical starting kernel when the target webpage is started on the target browser according to the historical login webpage to which the target webpage belongs and the starting kernels corresponding to the historical login webpages;
and determining a historical starting kernel of the target webpage when the target webpage is started on the target browser as the target kernel.
In a possible implementation, the login result is used to indicate that the target webpage does not belong to the historical login webpage; the determining module 43 is specifically configured to:
acquiring at least one webpage keyword of the target webpage according to the website information;
and determining the target kernel in the first kernel and the second kernel according to the at least one webpage keyword.
The apparatus provided in this embodiment may be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects are similar, which are not described herein again.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application, and as shown in fig. 5, the electronic device according to the embodiment includes: a processor 51 and a memory 52; wherein
A memory 52 for storing computer-executable instructions;
the processor 51 is configured to execute computer-executable instructions stored in the memory to implement the steps performed by the browser kernel determination method in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 52 may be separate or integrated with the processor 51.
When the memory 52 is provided separately, the electronic device further includes a bus 53 for connecting the memory 52 and the processor 51.
An embodiment of the present application further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the method for determining a browser kernel executed by the electronic device is implemented.
Embodiments of the present application may also provide a computer program product, which can be executed by a processor, and when the computer program product is executed, any one of the above-described browser kernel determination methods can be implemented.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A browser kernel determining method is characterized in that a browser interface of a target browser is provided through terminal equipment, and the method comprises the following steps:
responding to a touch operation of opening a target webpage on the browser interface, and acquiring website information of the target webpage;
acquiring a preset kernel corresponding relation, wherein the preset kernel corresponding relation is used for indicating starting kernels corresponding to a plurality of preset webpages;
determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel corresponding relation;
and rendering the webpage content of the target webpage according to the target kernel, and displaying the webpage content on the browser interface.
2. The method according to claim 1, wherein determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel correspondence includes:
acquiring the affiliation of the target webpage and the preset webpages according to the website information, wherein the affiliation is used for indicating that the target webpage belongs to the preset webpages or the target webpage does not belong to the preset webpages;
and determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel corresponding relationship and the website information.
3. The method of claim 2, wherein the affiliation indicates that the target web page belongs to the plurality of preset web pages; determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel correspondence relationship, and the website information, including:
determining a starting kernel corresponding to a preset webpage to which the target webpage belongs according to the preset kernel corresponding relation, wherein the starting kernel corresponding to the preset webpage to which the target webpage belongs is the first kernel or the second kernel;
and determining a starting inner core corresponding to a preset webpage to which the target webpage belongs as the target inner core.
4. The method of claim 2, wherein the affiliation indicates that the target web page does not belong to the plurality of preset web pages; determining the target kernel in the first kernel and the second kernel according to at least one of the dependency relationship, the preset kernel correspondence relationship, and the website information, including:
acquiring user login information of the terminal equipment;
and determining the target kernel in the first kernel and the second kernel according to the user login information and the website information.
5. The method of claim 4, wherein determining the target kernel in the first kernel and the second kernel according to the user login information and the website information comprises:
acquiring a historical login webpage of the target browser and a starting kernel corresponding to the historical login webpage according to the user login information;
acquiring a corresponding login result according to the historical login webpage and the target webpage, wherein the login result is used for indicating that the target webpage belongs to the historical login webpage or that the target webpage does not belong to the historical login webpage;
and determining the target kernel in the first kernel and the second kernel according to the login result, at least one item of the starting kernel corresponding to the historical login webpage and the website information.
6. The method of claim 5, wherein the login result is used to indicate that the target webpage belongs to the historical login webpage; determining the target kernel in the first kernel and the second kernel according to at least one of the login result, the start kernel corresponding to the historical login webpage and the website information, including:
determining a historical starting kernel when the target webpage is started on the target browser according to the historical login webpage to which the target webpage belongs and the starting kernels corresponding to the historical login webpages;
and determining a historical starting kernel of the target webpage when the target webpage is started on the target browser as the target kernel.
7. The method of claim 5, wherein the login result is used to indicate that the target webpage does not belong to the historical login webpage; determining the target kernel in the first kernel and the second kernel according to at least one of the login result, the start kernel corresponding to the historical login webpage and the website information, including:
acquiring at least one webpage keyword of the target webpage according to the website information;
and determining the target kernel in the first kernel and the second kernel according to the at least one webpage keyword.
8. A browser kernel determining apparatus for providing a browser interface of a target browser through a terminal device, the apparatus comprising:
the first acquisition module is used for responding to touch operation of opening a target webpage on the browser interface and acquiring website information of the target webpage;
the second obtaining module is used for obtaining a preset kernel corresponding relation, and the preset kernel corresponding relation is used for indicating starting kernels corresponding to a plurality of preset webpages;
the determining module is used for determining a target kernel in a first kernel and a second kernel of the target browser according to the website information and the preset kernel corresponding relation;
and the processing module is used for rendering the webpage content of the target webpage according to the target kernel and displaying the webpage content on the browser interface.
9. An electronic device, comprising: at least one processor and a memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the browser core determination method of any of claims 1-7.
10. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the browser kernel determination method of any one of claims 1-7.
CN202210143450.0A 2022-02-16 2022-02-16 Browser kernel determination method and device Pending CN114491221A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210143450.0A CN114491221A (en) 2022-02-16 2022-02-16 Browser kernel determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210143450.0A CN114491221A (en) 2022-02-16 2022-02-16 Browser kernel determination method and device

Publications (1)

Publication Number Publication Date
CN114491221A true CN114491221A (en) 2022-05-13

Family

ID=81482635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210143450.0A Pending CN114491221A (en) 2022-02-16 2022-02-16 Browser kernel determination method and device

Country Status (1)

Country Link
CN (1) CN114491221A (en)

Similar Documents

Publication Publication Date Title
US11449570B2 (en) Data caching method and apparatus
US20180225387A1 (en) Method and apparatus for accessing webpage, apparatus and non-volatile computer storage medium
US9390168B1 (en) Customer keyword-based item recommendations
CN110968765B (en) Book searching method, computing device and computer storage medium
US8290925B1 (en) Locating product references in content pages
US9589032B1 (en) Updating content pages with suggested search terms and search results
CN113924565A (en) Screen reader summary with popular links
US9842162B1 (en) Navigating a taxonomy using search queries
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
US10437838B2 (en) Search navigation element
CN113343109A (en) List recommendation method, computing device and computer storage medium
CN110990701B (en) Book searching method, computing device and computer storage medium
CN107783983B (en) Information display method and device
US10877981B1 (en) Stopword inclusion for searches
CN111353836B (en) Commodity recommendation method, device and equipment
CN111767053A (en) Front-end page data acquisition method and device
CN111723210A (en) Method and device for storing data table, computer equipment and readable storage medium
CN114491221A (en) Browser kernel determination method and device
CN111046308A (en) Page loading method and device
CN112650940A (en) Recommendation method and device of application program, computer equipment and storage medium
CN110825976B (en) Website page detection method and device, electronic equipment and medium
CN113656737A (en) Webpage content display method and device, electronic equipment and storage medium
US9760624B1 (en) Automatic selection of an input language
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN112016017A (en) Method and device for determining characteristic data

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