Skip to content

fix the fetching of the image in src when using responsive images#99

Open
svdvonde wants to merge 3 commits intosparanoid:masterfrom
svdvonde:master
Open

fix the fetching of the image in src when using responsive images#99
svdvonde wants to merge 3 commits intosparanoid:masterfrom
svdvonde:master

Conversation

@svdvonde
Copy link
Copy Markdown

A proposed fix for issue #98. Instead of using img.src, use the read-only property img.currentSrc instead. This property is supported by all major browsers.

@svdvonde
Copy link
Copy Markdown
Author

Note: the current pull request still gives rise to a network call, which has the potential to be slow to resolve when the network connection is slow. Compared to the unmodified library, at least the network call returns with a http 304 instead of fetching the fallback image. I am working on a solution to eliminate the network call completely.

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.

1 participant