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

$(this).load(function() #138

Open
gitncw opened this issue Apr 19, 2017 · 2 comments
Open

$(this).load(function() #138

gitncw opened this issue Apr 19, 2017 · 2 comments

Comments

@gitncw
Copy link

gitncw commented Apr 19, 2017

$("img").unveil(200, function() {
$(this).load(function() {
this.style.opacity = 1;
});
});

Firefox does not work!

@tzws
Copy link

tzws commented Jun 1, 2017

        $("img").unveil(300, 
		function() {
			$(this).load(function() {
				this.style.opacity = 1;
			});
		});

@SuN-80
Copy link

SuN-80 commented Jul 31, 2017

jQuery event aliases like .load, .unload or .error are deprecated since jQuery 1.8, try to register listeners instead. In short replace $(this).load(function() with $(this).on("load", function(), it should work

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

3 participants