Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a check in background plugin to prevent undefined background styles injected #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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