Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- #1326 - #1428 Depending on device bandwidth, even 150x150 `Product::Photo`s can take a quarter to a half second to load. When the photo does not have a set height; this results in the page re-flowing as the photo loads in. To Test: - Add several `Products` with a `Product::Photo` to a `Marketplace` - Throttle your network connection to 2g (Firefox DevTools can do this) - Visit the `Marketplace` - Before: `Product`s would "bump" down the page as the photos load. - After: `Product`s stay in the same dang place, even as the photos load Reference: - https://css-tricks.com/preventing-content-reflow-from-lazy-loaded-images/ (Note: While this talks about lazy-loaded images, the principal of "set the height and width of the image!" still applies)
- Loading branch information