Webpage picture loading method and device
By generating thumbnails and building sprite sheets and index files, and publishing images using CDN, the problems of network traffic consumption and memory usage when loading massive amounts of web page images are solved, improving page loading performance and user experience.
CN121597934APending Publication Date: 2026-03-03BEIJING JINGDONG YUANSHENG TECH CO LTD
3 Cites 0 Cited by
Patent Information
- Application Number
- CN202411143131.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-03
AI Technical Summary
Technical Problem
Existing technologies cause high network traffic consumption and excessive client memory usage when loading massive amounts of web page images, leading to page lag.
Method used
By generating thumbnails and building sprite sheets and index files, the sprite sheets, original images, and index files are published using a Content Delivery Network (CDN). Clients load sprite sheets from the CDN to obtain thumbnails and render them, thus solving the problem of loading massive amounts of images.
Benefits of technology
It shortens the image loading path, improves performance, reduces the number of network requests, avoids unavailability issues caused by loading massive amounts of images, and enhances the user experience.
✦ Generated by Eureka AI based on patent content.
Abstract
The embodiment of the invention discloses a webpage picture loading method and device. The specific implementation mode of the method comprises the steps that a client side responds to a received request for loading a webpage picture, loads a Sprite map from a content distribution network and obtains an index file, and the Sprite map comprises a thumbnail of the webpage picture; querying the coordinate position of the thumbnail in the Sprite map in the index file according to the address of the webpage picture; and obtaining the thumbnail from the Sprite map according to the inquired coordinate position, and rendering the thumbnail. The server is used for generating a thumbnail based on the original picture in the picture resource library; based on the thumbnail, constructing a Sprite map, and generating an index file, the index file comprising an address of the Sprite map and a coordinate position of the thumbnail in the Sprite map; and publishing the Sprite map, the original map and the index file to a content distribution network. According to the embodiment, the abnormal problems of lagging and even unavailability caused by simultaneous display of massive pictures on a webpage are solved based on a Sprite map technology.
Need to check novelty before this filing date? Find Prior Art