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

When images are loaded over a slow connection, there is a white screen till it loads #6

Closed
pliablepixels opened this issue Apr 30, 2015 · 1 comment

Comments

@pliablepixels
Copy link
Member

When images are loaded over a slow connection, there is a white screen till it loads --> on tracing logs it seems that nph-zms sends a blank HTTP 200 OK immediately and then transmits the image. Switching to just zms (as suggested by @knnniggett) alleviates this issue. The next issue to tackle is the delay in loading of the image - if its a large image, it still takes 4-5 seconds at times, depending on network and zms performance

@pliablepixels
Copy link
Member Author

I fixed this issue - figured out a way to intercept image loading. The strategy implemented is as follows - when the modal first loads, I show a loading message (I know the only reason the modal loads is to show the image stream) add a "directive" to img src that traps the image finished loading attribute (cool, did not know that existed). On image load completion, I remove that message so the user is not left with a blank screen wondering what is going on. I've set a timeout to 15 seconds for that message to handle situations where no image comes through from zms (happens some times and no error is reported either)

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

No branches or pull requests

1 participant