CN111782997A - Method and device for loading webpage and storage medium - Google Patents

Method and device for loading webpage and storage medium Download PDF

Info

Publication number
CN111782997A
CN111782997A CN202010499885.XA CN202010499885A CN111782997A CN 111782997 A CN111782997 A CN 111782997A CN 202010499885 A CN202010499885 A CN 202010499885A CN 111782997 A CN111782997 A CN 111782997A
Authority
CN
China
Prior art keywords
webpage
client
user information
page
loading
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
CN202010499885.XA
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.)
Xiaomi Digital Technology Co Ltd
Original Assignee
Xiaomi Digital Technology 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 Xiaomi Digital Technology Co Ltd filed Critical Xiaomi Digital Technology Co Ltd
Priority to CN202010499885.XA priority Critical patent/CN111782997A/en
Publication of CN111782997A publication Critical patent/CN111782997A/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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The disclosure relates to a method and a device for loading a webpage and a storage medium. The method is applied to the client and comprises the following steps: acquiring user information required by the webpage through a scheduling interface connecting a client and the webpage; sending an information request carrying login information recorded by the client to a server, wherein the information request is used for requesting user information required by the webpage; receiving the user information of a user pointed by the login information returned by the server according to the information request; and loading the webpage written with the user information. According to the technical scheme provided by the embodiment of the disclosure, the login information recorded by the client is utilized to directly acquire the user information from the server, and the user does not need to jump to the login page and log in when the webpage is loaded, so that the webpage loading speed is increased, and the use experience of the user is further improved.

Description

Method and device for loading webpage and storage medium
Technical Field
The present disclosure relates to network communication technologies, and in particular, to a method and an apparatus for loading a web page, and a storage medium.
Background
In mixed-mode application clients, it is often necessary to load H5(HTML5.0, hypertext 5.0) pages using webview. The H5 page is a page that temporarily acquires data from a server and renders the page, and requires the server to request the relevant data at the time of loading. And the information related to the user needs to be acquired through the API according to the login information of the user. Therefore, when the H5 page containing the user-related information is loaded, the H5 page needs to jump to the login page, and the H5 page needs to be reloaded after the login information is acquired. Therefore, multiple jumps are needed in the using process, so that the waiting time is long, the login is easy to fail, and the poor using experience is caused.
Disclosure of Invention
The disclosure provides a method and a device for loading a webpage and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for loading a web page, where the method is applied to a client, and includes:
acquiring user information required by the webpage through a scheduling interface connecting a client and the webpage;
sending an information request carrying login information recorded by the client to a server, wherein the information request is used for requesting user information required by the webpage;
receiving the user information of a user pointed by the login information returned by the server according to the information request;
and loading the webpage written with the user information.
In some embodiments, the obtaining, by a scheduling interface connecting a client and the web page, user information required by the web page includes:
acquiring a callback function carrying user information required by the webpage through a scheduling interface connecting the client and the webpage;
the loading the web page written with the user information includes:
acquiring the page resource written in the user information through the callback function taking the page resource locator and the user information as parameters;
and loading the webpage according to the page resource carrying the user information.
In some embodiments, the parameters of the scheduling interface include: a page resource locator; the acquiring the user information required by the webpage through the scheduling interface connecting the client and the webpage comprises the following steps:
acquiring the page resource corresponding to the page resource locator through the scheduling interface;
and acquiring the user information required by the webpage according to the page resource.
In some embodiments, the method further comprises:
obtaining the login information according to the cache data recorded by the client;
or the like, or, alternatively,
displaying a login page of a client; and acquiring the login information according to the input operation received by the login page.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for loading a web page, the apparatus being applied to a client, and the apparatus including:
the first acquisition module is used for acquiring user information required by the webpage through a scheduling interface connecting a client and the webpage;
a sending module, configured to send an information request carrying login information recorded by the client to a server, where the information request is used to request user information required by the web page;
the receiving module is used for receiving the user information of the user pointed by the login information returned by the server according to the information request;
and the loading module is used for loading the webpage written with the user information.
In some embodiments, the first obtaining module is specifically configured to:
acquiring a callback function carrying user information required by the webpage through a scheduling interface connecting the client and the webpage;
the loading module comprises:
the first obtaining submodule is used for obtaining the page resource written in the user information through the callback function taking the page resource locator and the user information as parameters;
and the loading submodule is used for loading the webpage according to the page resource carrying the user information.
In some embodiments, the parameters of the scheduling interface include: a page resource locator; the first obtaining module includes:
the second obtaining submodule is used for obtaining the page resource corresponding to the page resource locator through the scheduling interface;
and the third obtaining submodule is used for obtaining the user information required by the webpage according to the page resource.
In some embodiments, the apparatus further comprises:
the second acquisition module is used for acquiring the login information according to the cache data recorded by the client;
or the like, or, alternatively,
the display module is used for displaying a login page of the client;
and the third acquisition module is used for acquiring the login information according to the input operation received by the login page.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for loading a web page, the apparatus at least including: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is used for executing the executable instructions, and the executable instructions execute the steps in any method for loading the webpage.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions, which when executed by a processor, implement the steps in any one of the above methods of loading a web page.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the client side directly obtains the user information from the server by using the recorded login information, so that the webpage with the user information is directly loaded. Therefore, the user does not need to jump to the login page for logging in after the login information manually input by the user when the webpage is loaded, the webpage loading speed is increased, and the use experience of the user is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a first method of loading a web page in accordance with an exemplary embodiment;
FIG. 2 is a flowchart illustrating a method of loading a web page in accordance with an exemplary embodiment;
FIG. 3 is a flowchart three illustrating a method of loading a web page in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an apparatus for loading a web page in accordance with an exemplary embodiment;
fig. 5 is a block diagram illustrating an entity structure of an apparatus for loading a web page according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for loading a web page according to an exemplary embodiment, where the method is applied to a client side, as shown in fig. 1, and includes the following steps:
step S101, acquiring user information required by the webpage through a scheduling interface connecting a client and the webpage;
step S102, sending an information request carrying login information recorded by the client to a server, wherein the information request is used for requesting user information required by the webpage;
step S103, receiving the user information of the user pointed by the login information returned by the server according to the information request;
and step S104, loading the webpage written with the user information.
In the embodiment of the present disclosure, the client may be an application client under an (Android) Android system, an ios operating system, or other operating systems. The client itself has the ability to interact with the server and may have a variety of functions and pages for the user to browse or operate. Meanwhile, the client also has the capability of displaying more dynamic information and interactive functions by loading the webpage.
The web page may be HTML (hypertext Markup Language), such as H5 page, or a multimedia page implemented by CGI (Common Gateway Interface), ASP (Active server pages), etc. Different web pages may be provided by different third party developers and may carry functionality that native applications cannot directly implement. If the webpage contains the information related to the user, login information such as an account and/or a password of the user needs to be registered, and then corresponding user information such as user head portraits, user personal settings, user preference recommendation and other user attribute information and/or user grade information is acquired according to the user pointed by the login information.
For example, the wechat applet can expose a variety of rich pages through the H5 page and provide interactive functions. In applets that involve user information, such as "health codes," each time they are opened, a jump to the landing page is required. Then, according to the input operation of the user or through an API (Application Programming Interface) loaded on the login page, the pre-stored login information is acquired, and then a cookie (locally stored access record or data related to the user information) related to the login information is returned to the web page, so that the web page carrying the user information can be loaded.
Based on this, in the embodiment of the present disclosure, a scheduling interface between the client and the web page is defined, for example: a js interface (javascript, a programming language) with a resource locator of a web page as a parameter. The client can obtain the user information required by loading the webpage through the scheduling interface. The client sends the information request carrying the login information to the server according to the required user information, at the moment, the server simultaneously obtains the login information of the user and the information request of which user information is required, and then the related personal information uploaded or set in advance by the user pointed by the login information can be fed back to the client.
It will be appreciated that the client is already in the logged-in state when the H5 page is loaded, and therefore the login information of the user is recorded. When the client is started, login can be performed according to input of a user, existing login information can be acquired according to historical data, and then login is performed directly. In the process of using the client, the identity of the logged-in user is always operated, so that various webpages are loaded under the client, and the login information recorded by the client can be used as the identity authentication information of the webpage user.
In the embodiment of the present disclosure, since the client records the login information, and the server for providing the user information of the current webpage to be loaded may record the user information that has been uploaded or set by the user, the client only needs to acquire which user information is needed by the webpage through the defined scheduling interface, and then sends the information request carrying the login information to the server. That is, the client may utilize the communication parameters and communication settings with different servers, which are included in its own web library, for example, a connection cache with a server database, to quickly establish a connection with the server and obtain data, without recording the content of user information required by different web pages. Therefore, no matter what webpage the user opens, when different user information is needed, the information request can be sent to the corresponding server through the unified login information recorded by the client. The process that login interception needs to be carried out respectively and login information is input when different webpages are loaded is omitted.
For the server, because the information request carries the login information, the identity authentication can be directly carried out, and the request for identity authentication does not need to be fed back to the client, so that the related user information can be fed back quickly. For the webpage to be loaded, the user information acquired through the client can be directly displayed when webpage content is loaded. That is, in the process of loading the webpage, both the server and the webview do not need to perform identity authentication, so that the webpage loading speed is increased. For the user, the login information does not need to be input for many times, and the repeated jump of the page does not need to be waited, so that the user experience is improved. In addition, the client side is usually provided with a powerful network library, so that data connection with a server providing related services is facilitated, for example, connection caching can be realized, and the database can be connected quickly. Therefore, the webpage can acquire the required user information by utilizing the data communication capability of the client side more conveniently and quickly.
In some embodiments, as shown in fig. 2, in the step S101, the obtaining, by connecting the client to the scheduling interface of the web page, user information required by the web page includes:
step S201, obtaining a callback function carrying user information required by the webpage through a scheduling interface connecting the client and the webpage;
in step S104, the loading the web page written with the user information includes:
step S202, acquiring page resources written in the user information through the callback function taking the page resource locator and the user information as parameters;
and loading the webpage according to the page resource written in the user information.
In this embodiment of the present disclosure, the client may obtain a callback method of the web page as a parameter through the scheduling interface. That is to say, the client may obtain the callback function of the web page, and is configured to call out the address of the web page through the callback function after receiving the user information fed back by the server, so as to load the web page.
When the callback function is used for loading the webpage, the basic content of the webpage needs to be loaded through the resource locator of the webpage, namely the content which does not relate to the user information, and meanwhile, the content related to the user information also needs to be loaded. Therefore, the callback function may take the resource locator and the user information of the web page as parameters.
Therefore, after the client acquires the response of the server, the page resource written with the user information can be directly loaded through the callback function, and therefore the related content with the user information is directly displayed for the user to browse.
In some embodiments, the parameters of the scheduling interface include: a page resource locator; the acquiring the user information required by the webpage through the scheduling interface connecting the client and the webpage comprises the following steps:
acquiring the page resource corresponding to the page resource locator through the scheduling interface;
and acquiring the user information required by the webpage according to the page resource.
When a webpage is loaded, a client acquires a page resource locator (URL) of the webpage, and if the webpage is loaded directly through the page resource locator, user information cannot be acquired, so that the client needs to jump to a login page. Therefore, in the embodiment of the present disclosure, before loading a page, a page resource is obtained according to a page resource locator through the scheduling interface; and then acquiring user information required by the webpage according to the content of the webpage resource. In practical application, the relevant interface of the user information can be called according to the code corresponding to the page resource, and the needed user information is determined.
Here, the page resource includes text, images, operation controls, and the like to be shown in the webpage to be loaded. In addition, the page resource may further include an API (Application Programming Interface) with some parameters, which is used to call information pre-stored in the terminal or the client. In this way, the web page view component can obtain the page resource through the URL, and then present the page resource on the interactive interface in a rendering or other manners.
Therefore, the client determines which user information is needed and can be directly written into the page resource after being acquired from the server, so that the webpage with the user information can be conveniently and directly loaded.
In some embodiments, the method further comprises:
obtaining the login information according to the cache data recorded by the client;
or the like, or, alternatively,
displaying a login page of a client; and acquiring the login information according to the input operation received by the login page.
In the embodiment of the present disclosure, the login information may be acquired when the client is started or when the client is started for the first time. The user can input a user name, a password and the like as login information by displaying a login page of the client. The login information can also be obtained according to cache data obtained by the client in the historical use process or from other devices, other clients and the cloud. For example, the client may use the login information of the other application program that the electronic device belongs to as the login information of the client, or use the login information of the related application program on the other electronic device as the login information of the client.
After the client logs in, the recorded login information can be used as authentication information for acquiring user information when various webpages are loaded, and further different webpages do not need to be repeatedly logged in the using process of the client.
The disclosed embodiments also provide the following examples:
the development of the application program comprises three modes: native (Native mode), Web (Web mode), and Hybrid (Hybrid mode). The native mode has high development cost and cannot cross platforms, and the installation package needs to be downloaded when the application program is upgraded, so that the occupied storage space is large. The development cost of the webpage mode is low, but each opening is similar to accessing a website, so the access speed is slow, and the operation experience is poor. With the increase of the functional requirements of different applications, mixed-mode development becomes an important way for client development.
The mixed mode has the advantages of a native application program, can bear basic client functions, and can realize the extension of various functions by utilizing the H5 page. For example: small programs, fast applications, etc. When in use, the H5 page needs to be loaded by using webview, and the H5 page may contain user-related information, so that login needs to be performed on the H5 page.
In some embodiments, webview first sends a request to the server to load a page via the web page URL. And the server detects that the request is not subjected to identity authentication, and redirects the request through the 302 state code, so that the server jumps to a login page. The landing page provides the js port to the client.
The client may perform a single sign-on via account sdk (software development kit) and then inject the webview with a cookie associated with the sign-on information. Webview reloads and loads the webpage according to the URL request, and at the moment, the request is provided with the cookie related to the login information. The server detects the cookie related to the login information, so that the user information is correspondingly read and fed back to the Webview to load the webpage.
In the method, the login of the webpage can be realized only after multiple jumps, and therefore, in the embodiment of the disclosure, the capability of the client is used for sending a request to the server instead of webview, so that the jump login on the H5 page is not needed. As shown in fig. 3, the method comprises the steps of:
step S301, defining a js interface for the client to communicate with H5, wherein the interface takes the URL corresponding to H5 as a parameter, and simultaneously defines a callback function (namely, callback method) of an H5 page as a parameter.
Step S302, the client establishes connection with the server through the network library of the client, and sends the access request with the login information recorded by the client to the server.
And step S303, acquiring feedback information sent by the server according to the access request.
Step S304, the client transmits the feedback information to H5 through the callback function.
Step S305, H5 directly obtain the content with the user information, so as to load the complete webpage and perform the subsequent operations.
By the method, the H5 can send the request of the information needing login without login and obtain the feedback carrying the user information, so that the user does not need to jump to a login page, the page loading speed is increased, and the condition of login failure is reduced. In addition, since the network library of the client usually has a powerful connection function, for example, a connection cache can be implemented, and a database of the server can be connected quickly. Thus, the H5 page takes advantage of the client's ability to send requests to get data resources more quickly.
Fig. 4 is a block diagram illustrating a structure of an apparatus for loading a web page according to an exemplary embodiment, where, as shown in fig. 4, the apparatus 400 is applied to a client, and includes:
a first obtaining module 401, configured to obtain user information required by the web page through a scheduling interface connecting a client and the web page;
a sending module 402, configured to send an information request carrying login information recorded by the client to a server, where the information request is used to request user information required by the web page;
a receiving module 403, configured to receive the user information of the user to which the login information returned by the server according to the information request is directed;
a loading module 404, configured to load the webpage written with the user information.
In some embodiments, the first obtaining module is specifically configured to:
acquiring a callback function carrying user information required by the webpage through a scheduling interface connecting the client and the webpage;
the loading module comprises:
the first obtaining submodule is used for obtaining the page resource written in the user information through the callback function taking the page resource locator and the user information as parameters;
and the loading submodule is used for loading the webpage according to the page resource carrying the user information.
In some embodiments, the parameters of the scheduling interface include: a page resource locator; the first obtaining module includes:
the second obtaining submodule is used for obtaining the page resource corresponding to the page resource locator through the scheduling interface;
and the third obtaining submodule is used for obtaining the user information required by the webpage according to the page resource.
In some embodiments, the apparatus further comprises:
the second acquisition module is used for acquiring the login information according to the cache data recorded by the client;
or the like, or, alternatively,
the display module is used for displaying a login page of the client;
and the third acquisition module is used for acquiring the login information according to the input operation received by the login page.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an apparatus 500 for loading a web page according to an example embodiment. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 501, memory 502, power component 503, multimedia component 504, audio component 505, input/output (I/O) interface 506, sensor component 507, and communication component 508.
The processing component 501 generally controls the overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 501 may include one or more processors 510 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 501 may also include one or more modules that facilitate interaction between the processing component 501 and other components. For example, the processing component 501 may include a multimedia module to facilitate interaction between the multimedia component 504 and the processing component 501.
The memory 510 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on the apparatus 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 502 may be implemented by any type or combination of volatile or non-volatile storage 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.
The power supply component 503 provides power to the various components of the device 500. The power supply component 503 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 504 includes a screen that provides an output interface between the device 500 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 504 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 505 is configured to output and/or input audio signals. For example, audio component 505 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 510 or transmitted via the communication component 508. In some embodiments, audio component 505 further comprises a speaker for outputting audio signals.
The I/O interface 506 provides an interface between the processing component 501 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 507 includes one or more sensors for providing various aspects of condition assessment for the device 500. For example, the sensor assembly 507 may detect the open/closed status of the device 500, the relative positioning of components such as a display and keypad of the device 500, the sensor assembly 507 may also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration/deceleration of the device 500, and a change in the temperature of the device 500. The sensor assembly 507 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 507 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 507 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 508 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 508 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 508 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 502 comprising instructions, executable by the processor 510 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments of the present disclosure also provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the method provided in any of the embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A method for loading a webpage, which is applied to a client side, comprises the following steps:
acquiring user information required by the webpage through a scheduling interface connecting a client and the webpage;
sending an information request carrying login information recorded by the client to a server, wherein the information request is used for requesting user information required by the webpage;
receiving the user information of a user pointed by the login information returned by the server according to the information request;
and loading the webpage written with the user information.
2. The method of claim 1, wherein the obtaining the user information required by the web page through a scheduling interface connecting a client and the web page comprises:
acquiring a callback function carrying user information required by the webpage through a scheduling interface connecting the client and the webpage;
the loading the web page written with the user information includes:
acquiring the page resource written in the user information through the callback function taking the page resource locator and the user information as parameters;
and loading the webpage according to the page resource carrying the user information.
3. The method according to claim 1 or 2, wherein the parameters of the scheduling interface comprise: a page resource locator; the acquiring the user information required by the webpage through the scheduling interface connecting the client and the webpage comprises the following steps:
acquiring the page resource corresponding to the page resource locator through the scheduling interface;
and acquiring the user information required by the webpage according to the page resource.
4. The method of claim 1, further comprising:
obtaining the login information according to the cache data recorded by the client;
or the like, or, alternatively,
displaying a login page of a client; and acquiring the login information according to the input operation received by the login page.
5. An apparatus for loading a web page, wherein the apparatus is applied to a client, and comprises:
the first acquisition module is used for acquiring user information required by the webpage through a scheduling interface connecting a client and the webpage;
a sending module, configured to send an information request carrying login information recorded by the client to a server, where the information request is used to request user information required by the web page;
the receiving module is used for receiving the user information of the user pointed by the login information returned by the server according to the information request;
and the loading module is used for loading the webpage written with the user information.
6. The apparatus of claim 5, wherein the first obtaining module is specifically configured to:
acquiring a callback function carrying user information required by the webpage through a scheduling interface connecting the client and the webpage;
the loading module comprises:
the first obtaining submodule is used for obtaining the page resource written in the user information through the callback function taking the page resource locator and the user information as parameters;
and the loading submodule is used for loading the webpage according to the page resource carrying the user information.
7. The apparatus of claim 5 or 6, wherein the parameters of the scheduling interface comprise: a page resource locator; the first obtaining module includes:
the second obtaining submodule is used for obtaining the page resource corresponding to the page resource locator through the scheduling interface;
and the third obtaining submodule is used for obtaining the user information required by the webpage according to the page resource.
8. The apparatus of claim 5, further comprising:
the second acquisition module is used for acquiring the login information according to the cache data recorded by the client;
or the like, or, alternatively,
the display module is used for displaying a login page of the client;
and the third acquisition module is used for acquiring the login information according to the input operation received by the login page.
9. An apparatus for loading a web page, the apparatus comprising at least: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps of the method for loading a web page provided by any one of the preceding claims 1 to 4.
10. A non-transitory computer readable storage medium having stored thereon computer executable instructions which, when executed by a processor, implement the steps in the method of loading a web page as provided in any one of claims 1 to 4.
CN202010499885.XA 2020-06-04 2020-06-04 Method and device for loading webpage and storage medium Pending CN111782997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010499885.XA CN111782997A (en) 2020-06-04 2020-06-04 Method and device for loading webpage and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010499885.XA CN111782997A (en) 2020-06-04 2020-06-04 Method and device for loading webpage and storage medium

Publications (1)

Publication Number Publication Date
CN111782997A true CN111782997A (en) 2020-10-16

Family

ID=72753975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010499885.XA Pending CN111782997A (en) 2020-06-04 2020-06-04 Method and device for loading webpage and storage medium

Country Status (1)

Country Link
CN (1) CN111782997A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117285A (en) * 2022-01-27 2022-03-01 浙江口碑网络技术有限公司 Position information processing method and device based on H5 page and electronic equipment
CN116127435A (en) * 2023-04-17 2023-05-16 深圳市活力天汇科技股份有限公司 Webpage login method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036993A (en) * 2012-12-18 2013-04-10 北京奇虎科技有限公司 Browser client-side and method of achieving website logging
CN108733991A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 Web application access method and device, storage medium
CN109040072A (en) * 2018-08-06 2018-12-18 武汉斗鱼网络科技有限公司 A kind of method, system, server and the storage medium of client authorization log-on webpage
CN111159614A (en) * 2019-12-30 2020-05-15 北京金堤科技有限公司 Webpage resource acquisition method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036993A (en) * 2012-12-18 2013-04-10 北京奇虎科技有限公司 Browser client-side and method of achieving website logging
CN108733991A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 Web application access method and device, storage medium
CN109040072A (en) * 2018-08-06 2018-12-18 武汉斗鱼网络科技有限公司 A kind of method, system, server and the storage medium of client authorization log-on webpage
CN111159614A (en) * 2019-12-30 2020-05-15 北京金堤科技有限公司 Webpage resource acquisition method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114117285A (en) * 2022-01-27 2022-03-01 浙江口碑网络技术有限公司 Position information processing method and device based on H5 page and electronic equipment
CN116127435A (en) * 2023-04-17 2023-05-16 深圳市活力天汇科技股份有限公司 Webpage login method and device

Similar Documents

Publication Publication Date Title
CN106603667B (en) Screen information sharing method and device
CN106569800B (en) Front-end interface generation method and device
EP3561691B1 (en) Method and apparatus for displaying webpage content
CN108833585B (en) Information interaction method and device and storage medium
CN107220059B (en) Application interface display method and device
CN106792442B (en) Data migration method and device
CN109347916B (en) Game interaction method and device and computer readable storage medium
CN111581561A (en) Page display control method and device, client and storage medium
CN111782997A (en) Method and device for loading webpage and storage medium
CN107423146B (en) Method, device and system for controlling mutual calling of application programs
CN109525652B (en) Information sharing method, device, equipment and storage medium
CN106708967B (en) Page display method and device
CN111159615A (en) Webpage processing method and device
CN105808304B (en) Code deployment method, device and system
CN111079040B (en) Resource sniffing method, device, terminal, server and storage medium
CN111314419B (en) Network request method and device
CN109976872B (en) Data processing method and device, electronic equipment and storage medium
CN112328330A (en) iOS component calling method, device, middleware, electronic equipment and medium
CN105630948B (en) Network page display method and device
CN109359252B (en) Browser selection method and device
CN111314426A (en) Webpage resource obtaining method and device, electronic equipment and storage medium
CN110543265A (en) Page title bar generation method and device, electronic equipment and storage medium
CN116112332A (en) Page display method, device and system, electronic equipment and storage medium
CN112651012B (en) Information processing method and device
CN105868354B (en) Webpage repairing method and device

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
CB02 Change of applicant information

Address after: Room 803, 8th floor, building 5, courtyard 15, Kechuang 10th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing 100176

Applicant after: Tianxing Digital Technology Co., Ltd

Address before: 100176 no.2243, 2 / F, building D, building 33, 99 Kechuang 14th Street, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant before: Xiaomi Digital Technology Co., Ltd

CB02 Change of applicant information