Master Image Optimization for Touch Pages: Reduce Size, Merge Requests, and Smart Loading

This guide explains practical image‑optimization techniques for touch‑screen web pages, covering file‑size reduction, request merging via sprites or Data URLs, and three loading strategies—normal, explicit/implicit preloading, and lazy loading—to improve performance and user experience.

Aotu Lab
Aotu Lab
Aotu Lab
Master Image Optimization for Touch Pages: Reduce Size, Merge Requests, and Smart Loading

General Image Optimization Techniques

Before implementing any loading strategy, reduce the amount of data transferred and the number of HTTP requests.

Reduce file size : compress or optimize the image and select an appropriate format (e.g., WebP, AVIF, JPEG‑2000). The article references a guide “Web Performance Optimization: Image Optimization” for tools and format selection.

Reduce request count : combine multiple images into a CSS sprite or embed images as Base64 data: URLs.

Reducing Image Requests

CSS sprites merge several icons into a single image file and display portions via background-position, cutting the number of HTTP requests. Data URLs convert an image to a Base64 string; when placed in CSS or JavaScript the string benefits from the caching of those files, whereas embedding directly in HTML does not cache the image.

Image Loading Strategies for Touch Pages

Touch‑oriented pages typically use one of three loading approaches: normal loading, preloading, or lazy loading.

Normal Loading

The browser loads images automatically without developer intervention. This is only viable when the page contains few, small images, because large or numerous assets increase load time and bandwidth consumption.

Preloading

Resources are fetched ahead of time so the page can be displayed only after critical assets are ready. Preloading can be classified by whether the user sees a progress indicator.

Explicit (visible) preloading : a progress bar, spinner, or other UI element informs the user of loading status.

Implicit (background) preloading : assets are loaded in the background with no visual feedback.

Example: the JD touch page “Ignite the Beast in Your Heart” uses explicit preloading with a progress bar to set user expectations.

Lazy Loading

Images are deferred until they are about to enter the viewport, reducing initial page weight and improving perceived performance. The article mentions lazy loading as a third category but does not provide implementation details.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

lazy loadingpreloadingfrontend performancetouch UI
Aotu Lab
Written by

Aotu Lab

Aotu Lab, founded in October 2015, is a front-end engineering team serving multi-platform products. The articles in this public account are intended to share and discuss technology, reflecting only the personal views of Aotu Lab members and not the official stance of JD.com Technology.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.