Skip to content

Lazy loaded images break isotope calculated layout #94

Description

@pajowu

On the projects page (and possibly others) all images have loading="lazy" set.
Isotope calculated the layout after the page is loaded (and 1 second and 5 seconds after that).
Because the img tags do not have a height set and are lazy loaded, their height is assumed 0.
When the user scrolls down, the images are loaded but the layout is not recalculated by isotope, leading to results like the following:

2020-05-07-171428_979x651_scrot
2020-05-07-171347_1814x944_scrot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions