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

Added support for slow DOM loading browser such as mobile devices #20

Closed
wants to merge 1 commit into from

Conversation

Schwierig
Copy link

In some mobile browsers such as Chrome or Safari mobile the initial viewport images weren't loading without the user scrolling. This happened due to the fact that the images weren't even inserted into the DOM tree when unveil was initialized.
The added on-load event prevents this from happening.

@luis-almeida
Copy link
Owner

@Schwierig Are you initializing the plugin when the document is ready?

@joeldbirch
Copy link

Oh, I think I found that even window.onload doesn't fix this issue. I had to add a 100ms timeout and manually trigger unveil on the initial images. See my code at #7.

@Schwierig
Copy link
Author

I think this can be closed due to the fact that this doesn't fix the problem.

@Schwierig Schwierig closed this Sep 17, 2013
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.

None yet

3 participants