fixes bug where "lazyLoad" data attribute was set on callback, rather than immediately on invocation