-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
multiple request for same image #147
Comments
URL of the page where this happens? Does the problem exist in the demo page too? What browser are you using? It first assigns the src to anonymous image element which is not in the dom.This loads the image into cache. After image is loaded into cache plugin changes the src attribute of the lazyloaded image in dom. So unless browser cache is somehow confused second loading should not happen. |
i'm using latest chrome but the same "bug" is present in safari but not in firefox so i think that maybe is a webkit problem. there is another way? Thanks |
URL of the page where this happens? Does the problem exist in the demo page too? I do not see this behaviour with latest Safari nor Chrome. There is only one request made according to dev tools and webserver logs. |
ok, i've tested not in local branch and everything work like a charm. maybe a bug in webkit browsers or some flags in http request for my local php server. |
If you ever find out let me know what causes it. You are second person in a short time who first has double requests but then upon testing they are gone. |
@SocketReve check #151. Do you still have the problematic setup somewhere. What kind of response headers the images had? |
Hi,
why you use multiple assign of same resource?
This produce multiple junk http requests.
"$self.attr("src", original);"
" .attr("src", $self.data(settings.data_attribute));"
Thanks
The text was updated successfully, but these errors were encountered: