Skip to content

visibility attribute not considered #4

Open
@mvrueden

Description

@mvrueden

Hey there,

yesterday I experimented with your lazyload feature.

I realized, that the current code does not check the visibility attribute (e.g. "visibility: hidden").

Here is an example:

<img style="visibility: hidden;" data-frz-src="myImage.jpg" src=data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=== lzld(this) onerror=lzld(this) />

This image got loaded (lazy) even if its not really visible.

I am not sure if there is a reason why it is loaded, even if it is not visible, so I created an issue.

Please let me know, if you need any more information.

Kind regards
mvrueden

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