Memory optimization and loading method for picture browsing in waterfall flow mode

The invention belongs to the technical field of mobile application development and front-end performance optimization, and discloses a memory optimization and loading method for picture browsing in a waterfall flow mode, and the loading method comprises the following specific steps: S1: requesting a...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: DANG QIANQIAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention belongs to the technical field of mobile application development and front-end performance optimization, and discloses a memory optimization and loading method for picture browsing in a waterfall flow mode, and the loading method comprises the following specific steps: S1: requesting a picture list and caching, S2: calculating the size of a view and preloading, S3: loading and displaying a picture, and S4: processing and caching the picture. S5, rolling loading and preloading are carried out; s6, processing the picture which fails to be loaded; and S7, retrying to load the unsuccessfully loaded picture. By saving system resources, taking user browsing experience as a core and adopting an innovative loading scheme, the problem of overhigh memory occupation is successfully solved, better browsing experience is brought to the user while memory optimization is guaranteed, the image is intelligently pre-loaded according to the browsing behavior of the user, and the user experience is improved. Pictur