Search the blog

I recently had to trigger a scroll event using jQuery to make a parallax plugin work after some images had loaded and none of the following worked:

$(window).tigger('scroll');
$(document).tigger('scroll');
$('body').tigger('scroll');
$('html').tigger('scroll');
$('html, body').tigger('scroll');

It turns out you need to call scroll() and not trigger():

$(window).scroll();
Tim Bennett is a freelance web designer from Leeds. He has a First Class Honours degree in Computing from Leeds Metropolitan University and currently runs his own one-man web design company, Texelate.