Tag

masonry

1 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Dec 25, 2024 · Mobile Development

Masonry Layout Framework: Bundle Size Impact and Optimization Solutions

Masonry, a lightweight iOS layout framework, simplifies constraints with chainable syntax but its block‑based APIs can add several megabytes to an app’s bundle when heavily used; replacing those blocks with non‑block alternatives reduces the size increase to roughly one kilobyte, preserving performance.

Auto LayoutNSLayoutConstraintObjective-C
0 likes · 2 min read
Masonry Layout Framework: Bundle Size Impact and Optimization Solutions
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Jan 25, 2021 · Frontend Development

Mastering Masonry Layouts: High‑Performance Dual‑Column Waterfall in H5

This article explores the concept, use‑cases, and step‑by‑step implementation of a high‑performance dual‑column waterfall (masonry) layout for mobile H5, covering Flexbox structure, dynamic data distribution, error‑correction techniques, and a DP‑based optimal arrangement algorithm.

DP algorithmdynamic loadingflexbox
0 likes · 13 min read
Mastering Masonry Layouts: High‑Performance Dual‑Column Waterfall in H5