Skip to content

Broken image on website #1924

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

Closed
augbog opened this issue Mar 18, 2018 · 10 comments · Fixed by #1964
Closed

Broken image on website #1924

augbog opened this issue Mar 18, 2018 · 10 comments · Fixed by #1964
Assignees

Comments

@augbog
Copy link

augbog commented Mar 18, 2018

Looks like the image is no longer available for this person's image

https://opencollective.com/proxy/images/?src=https%3A%2F%2Fimages.githubusercontent.com%2Fandrewvieyra&height=96

screen shot 2018-03-17 at 6 21 29 pm

@Youngestdev
Copy link

Probably he's changed it or he's no more part of open collective or a manual error.

@montogeek montogeek self-assigned this Mar 19, 2018
@montogeek
Copy link
Member

We added an onError handle to deal with broken images (#1846), but for some reason it is not working in the website, it works locally

@EugeneHlushko
Copy link
Member

EugeneHlushko commented Mar 23, 2018

@montogeek i suspect its an issue with preact's onError

P.S. Thats why we cannot reproduce it locally under regular run

@EugeneHlushko
Copy link
Member

Maybe it makes sense to update react to 16 and stop aliasing?

@developit
Copy link

Looks like this isn't actually being rendered on the client. Since it's just SSR, there's no event attached to those images at all.

@EugeneHlushko
Copy link
Member

@developit is right
@montogeek do you think we should render the opencollective module only clientside to avoid this bug or is not important comparing to other work in progress e.g. Documentation updates and should be closed?

@montogeek
Copy link
Member

@EugeneHlushko It would be nice to have.

@augbog
Copy link
Author

augbog commented Apr 11, 2018

If it helps, I don't consistently see it because I imagine it only happens to opencollective related images so if it needs to be prioritized for later then that's fine. As of right now I don't see the issue anymore.

I don't think it makes sense to close the issue if it is an actual issue though but I leave that up to you :)

@EugeneHlushko
Copy link
Member

I'm trying to fix this by not rendering the images during "SSR" render pass, but only clientside, means html will be up and events will be bound on time. you can check it here @augbog https://github.com/webpack/webpack.js.org/pull/2026/files#diff-9f531bc074d3219cdba0c558ba8350aeR98
CC @developit

@Munter
Copy link
Collaborator

Munter commented Apr 12, 2018

Another improvement could be to style the images to their known width and height, so they don't break the layout of missing or make the layout jump while they are loading

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

Successfully merging a pull request may close this issue.

6 participants