Skip to content

Conversation

@ProxiBlue
Copy link

If background plugin is used at the same time as DOM elements that is set to lazy load, the background plugin incorrectly also injects a background-image style to each element. This causes a lot of undefined image loading

style="background-image: url(http://magento.zabadaclean.biz/undefined);"

This fix ads a check to determine that an element has a valid defined bgAttr set.

If background plugin is used at the same time as DOM elements that is set to lazy load, the background plugin incorrectly also injects a background-image style to each element. This causes a lot of undefined image loading

```style="background-image: url(http://magento.zabadaclean.biz/undefined);"```

This fix ads a check to determine that an element has a valid defined bgAttr set.
@mikearagao
Copy link

Hi! I'm having this issue for a while now! So glad I could find this!

My NewRelic logs are filled with 410 and I had no idea it was from these plugins because I wasn't able to replicate it on development for ages 😄

@ressio could you please consider merging this PR from @ProxiBlue?

Hope to hear from you!

@TheBnl
Copy link

TheBnl commented Apr 17, 2016

Experiencing the same issue, please consider merging

@Paul424
Copy link

Paul424 commented Aug 1, 2017

Seeing same issue, please merge a fix; or explain how to prevent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants