Browser Kernel Adaptation Method and Browser
A browser kernel and browser technology, applied in network data browsing optimization, instrumentation, digital data information retrieval, etc., can solve problems such as inability to automatically adapt browser kernel and affect user browser experience, so as to save traffic, Experience-Enhancing, Realistic Effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] See figure 1 , This embodiment provides a method for browser kernel adaptation, including:
[0048] 101: The browser receives a request from the user to browse the page;
[0049] 102: The browser obtains the information of the page from the server according to the request, and determines the type of the page according to the information of the obtained page;
[0050] 103: The browser selects a browser core according to the determined page type, and uses the selected browser core to process the request.
[0051] The page in this embodiment refers to a hypermedia document on the WWW (World Wide Web, World Wide Web), that is, a page, which is usually also called a web page.
[0052] In this embodiment, step 102 may include:
[0053] The browser sends an HTTP (HyperText Transfer Protocol) request message to the server according to the request, and receives the HTTP response message returned by the server; obtains the content type in the HTTP response message; determines that the conte...
Embodiment 2
[0063] See figure 2 , This embodiment provides a method for browser kernel adaptation, including:
[0064] 201: The user uses a browser to browse a page on a mobile terminal, and the browser receives a request from the user to browse the page.
[0065] 202: The browser sends an HTTP Request request message to the server according to the received request, and receives an HTTP Response response message returned by the server.
[0066] Wherein, the server refers to a server that provides page services, such as a certain website.
[0067] 203: The browser judges whether the received HTTP response message contains the Content-Type content type; if the HTTP response message contains the content type, execute 204; otherwise, execute 207.
[0068] The HTTP response message includes a header and a body, where the header optionally includes a Content-Type, which is used to identify the type of the currently requested page, and the browser can obtain the Content-Type from the HTTP response messag...
Embodiment 3
[0093] See image 3 , This embodiment provides a browser, including:
[0094] The receiving module 301 is used to receive a request from a user to browse a page;
[0095] The determining module 302 is configured to obtain page information from the server according to the request, and determine the type of the page according to the obtained page information;
[0096] The selection module 303 is configured to select a browser core according to the determined page type, and use the selected browser core to process the request.
[0097] See Figure 4 In this embodiment, the determining module 302 may include:
[0098] The request unit 302a is configured to send a hypertext transfer protocol HTTP request message to the server according to the request, and receive an HTTP response message returned by the server;
[0099] The obtaining unit 302b is used to obtain the content type in the HTTP response message;
[0100] The determining unit 302c is used to determine whether the content type is WM...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 