bengott / meteor-avatar

Consolidated Avatar Template Package for Meteor
73 stars 21 forks source link

Random errors are showing initials instead of avatars #68

Closed gdw2 closed 9 years ago

gdw2 commented 9 years ago

I've got a page with several facebook avatars (all of the same user). From refresh to refresh, I get different results. Usually they all show up, or they all don't, but sometimes I get a mix. In the debug tool's element browser, if I delete the SPAN associated with the initials, and remove the display: none property of the <img> tag, the image shows fine. I'm not sure what's causing the onerror to trip. I don't see any errors in the network tab of the debug tools.

Is this related to any currently-open issues? Or a new issue?

CarlQLange commented 9 years ago

I've a PR in that solves this issue for me https://github.com/bengott/meteor-avatar/pull/67. I think the onerror fires because the images are loaded before the page has all the info it needs, then re-loaded reactively.

rodrigok commented 9 years ago

I think that the PR #69 is more appropriate to solve this problem

gdw2 commented 9 years ago

https://github.com/bengott/meteor-avatar/pull/69 works for me!