desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"

Home Page:https://imagesloaded.desandro.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error the first time I check of images loaded

scratchoo opened this issue · comments

I get this error when I try to test for images are loaded

TypeError: this.proxyImage.addEventListener is not a function
this.proxyImage.addEventListener( 'load', this );

The second time when the images are cached and the request returns "304 Not Modified" the plugin works correctly

Update :

That's weird because this happens only when I load images using ajax and I loop through the result then I append img tags to the container... if there is no ajax, no loop and no adding image dynamically to the container the error doesn't happen

I'm sorry to see you're having trouble with imagesLoaded. Could you provide a reduced test case? See Submitting Issues in the contributing guidelines.