-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Using bgset with an svg image element #532
Comments
aFarkas
pushed a commit
that referenced
this issue
Sep 10, 2018
I update the code so you can extend this part using the event document.addEventListener('bgsetproxy', (e) => {
e.preventDefault();
elem.setAttribute(e.detail.useSrc);
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, thanks for making and releasing Lazysizes!
I'm using the bgset plugin on an image element within an inline svg. To get this to work I've had to hack the bgset plugin from around line 127 to the following:
Is it possible to get this to work without having to hack the bgset plugin?
Cheers,
Dylan
The text was updated successfully, but these errors were encountered: