Picture resource loading method and device

A picture and resource technology, applied in the network field, can solve problems such as low security, difficulty in changing DNS configuration, etc., and achieve the effect of strong versatility

Inactive Publication Date: 2020-05-15
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present application provides a picture resource loading method, device, terminal, and storage medium, which can be used to solve the problems in the related art that it is difficult to change the configuration of DNS when loading picture resources based on DNS, and the security is low. question

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
  • Picture resource loading method and device
  • Picture resource loading method and device
  • Picture resource loading method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0051] Before explaining the embodiment of the present application in detail, the application scenario of the embodiment of the present application will be described first.

[0052] Although the use of the WebP format can greatly reduce the size of image resources, save the traffic consumption of loading image resources, and improve the loading speed of web pages, but because some browsers do not fully support the WebP format at present, they cannot directly use the images in the WebP format. As a result, even though the WebP format has these high-quality features, it cannot be used directly and universally on all browsers.

[0053] This application provides a highly versatile image loading method. Through this method, the webpag...

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 discloses a picture resource loading method and device, a terminal and a storage medium, and belongs to the technical field of networks. The method comprises the steps: detecting a firstwebpage resource through a resource loader, wherein the first webpage resource is a webpage resource corresponding to a to-be-displayed webpage of a browser; if a resource loader is passed, detectingthat a first picture link exists in the first webpage resource; if the first webpage resource is not the WebP format picture and the browser supports display of the WebP format picture, replacing a first picture link in the first webpage resource with a second picture link to obtain a second webpage resource, wherein the first picture link refers to a picture link of a non-WebP format picture, and the second picture link refers to a picture link of the WebP format picture; and displaying a webpage corresponding to the second webpage resource through the browser according to the second webpageresource. According to the method, the resource loader can be configured for the browser, so the browser can load the WebP format picture, the universality is high, and certain safety is achieved.

Description

technical field [0001] The present application relates to the field of network technologies, in particular to a method and device for loading picture resources. Background technique [0002] The WebP format is a new image format that can provide lossy compression and lossless compression at the same time. The use of the WebP format can greatly reduce the size of image resources, save the traffic consumption of loading image resources, and improve the loading speed of web pages. . Based on these advantages of the WebP format, the current terminal needs to be able to load image resources in the WebP format. [0003] In related technologies, a method for loading picture resources based on a DNS (Domain Name System, Domain Name System) server is provided. The DNS server is a core server of the Internet, and it supports mapping from domain names to IP (Internet Protocol, Internet Protocol) addresses. It is convenient to access the Internet according to the domain name. In this...

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): G06F16/957G06F16/955
CPCG06F16/9574G06F16/9558
Inventor 杨浩为刘洋河楚著
Owner BEIJING SANKUAI ONLINE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products