JS error for images without src
-
I’m getting a JS error if a page contains images without a src tag (in my case it is injected by live chat software) and this prevents other JS on the page from executing correctly. If the
svgs-inline.js
file is updated to only look for images withsrc
attributes it can fix the issue:Line 10 Before
jQuery('img').each(function() {
Line 10 After
jQuery('img[src]').each(function() {
Thanks,
Matt
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘JS error for images without src’ is closed to new replies.