Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for loading H5 resources and electronic equipment

A resource and resource downloading technology, applied in the field of communication, can solve problems such as long waiting time for students, affect user experience and use effect, and excessive web resources, so as to reduce the possibility of repeated downloads, improve the efficiency of teaching interaction and the sense of learning experience Good results

Inactive Publication Date: 2021-09-03
北京拓课网络科技有限公司
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, in the Android system, when the loaded H5 (html5: a language description method for building web page content) web page resources are too large, and the local network is not good, it is easy to fail to load and report resource errors, which affects the User experience and usage effect
For example, in the online teaching scenario, the teacher can use the H5 courseware; when it is necessary to provide the courseware to the students, the courseware used in the online teaching can be uploaded to the server, and the courseware can be downloaded as an H5 web resource, namely H5 courseware; usually, the student client needs to use Webview (the control used to load web pages in the Android system) to load the H5 courseware in real time, but due to the above problems, the loading speed of the H5 courseware may be slow or even impossible, resulting in abnormal teaching , causing students to wait for a long time, reducing the efficiency of teaching interaction

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for loading H5 resources and electronic equipment
  • Method and device for loading H5 resources and electronic equipment
  • Method and device for loading H5 resources and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0022] figure 1 A flow chart of a method for loading H5 resources provided by an embodiment of the present invention is shown, and the method can be executed by a client. Such as figure 1 As shown, the method includes steps 101-104.

[0023] Step 101: Obtain a resource download request when loading an H5 file, and intercept the resource download request, the resource download request is used to download the H5 resource in the H5 file to the server.

[0024] Among them, H5 is a language description method for constructing webpage content, and files formed in the form of H5 can be called H5 files. For example, in an online teaching scenario, H5 files can be courseware stored in H5 format, which can include: text files, pictures, slides, audio and video, etc., one or more resources in H5 format, that is, H5 resources; , the H5 file ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and device for loading H5 resources and electronic equipment. The method comprises the steps: obtaining a resource downloading request when an H5 file is loaded, and intercepting the resource downloading request, wherein the resource downloading request is used for downloading the H5 resources in the H5 file from a server; under the condition that the H5 resource exists locally, indicating the H5 file to quote the local H5 resource; and under the condition that the H5 resource does not exist locally, downloading the H5 resource from the server, and indicating the H5 file to quote the downloaded H5 resource. According to the method and device for loading the H5 resources and the electronic equipment provided by the embodiment of the invention, when the H5 resources are too large and the local network is poor, the downloading request is intercepted, and whether the H5 resources needed at the time exist in the local or not is retrieved, so that the H5 resources existing in the local can be utilized, the possibility of repeated downloading is reduced, loading of a large number of H5 resources is realized, normal loading is guaranteed, and the loading speed of the H5 resources is optimized.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular, to a method, device, electronic equipment and computer-readable storage medium for loading H5 resources. Background technique [0002] At present, in the Android system, when the loaded H5 (html5: a language description method for building web content) web page resources are too large, and the local network is not good, it is easy to fail to load and report error problems, which affects the User experience and usage effects. For example, in the online teaching scenario, the teacher can use H5 courseware; when it is necessary to provide courseware to students, the courseware used in online teaching can be uploaded to the server, and the courseware can be downloaded as H5 web resources, that is, H5 courseware; usually, student clients need to use Webview (the control used to load webpages in the Android system) to load H5 courseware in real time. However, due to the a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445G06F16/958
CPCG06F9/44521G06F16/972
Inventor 马永飞
Owner 北京拓课网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products