Skip to content
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

error message for websites using websocket could be improved #16137

Closed
3 tasks done
SimonSiefke opened this issue Aug 1, 2024 · 1 comment
Closed
3 tasks done

error message for websites using websocket could be improved #16137

SimonSiefke opened this issue Aug 1, 2024 · 1 comment
Assignees

Comments

@SimonSiefke
Copy link

SimonSiefke commented Aug 1, 2024

FAQ

URL

https://websocket-example-0.glitch.me/

What happened?

  1. Try to analyze the url https://websocket-example-0.glitch.me/ with pagespeed insights
  2. An error message is displayed Error! The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again.

pagespeed-insights-0

What did you expect?

An more helpful error message is displayed that websockets are not supported, e.g. Error! Pagespeed Insights does not support websockets

What have you tried?

No response

How were you running Lighthouse?

PageSpeed Insights

Lighthouse Version

the version pagespeed insights uses

Chrome Version

No response

Node Version

No response

OS

No response

Relevant log output

First Contentful Paint
Error!
The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. (NO_FCP)
Largest Contentful Paint
Error!
The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. (NO_FCP)
Total Blocking Time
Error!
The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. (NO_FCP)
Cumulative Layout Shift
Error!
The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. (NO_FCP)
Speed Index
Error!
The page did not paint any content. Please ensure you keep the browser window in the foreground during the load and try again. (NO_FCP)


### Additional information

The error seems to occur only with pagespeed insights. When running lighthouse using chrome devtools, no error occurs.
@adamraine
Copy link
Member

I don't think this error comes from using websockets, like you said it only happens using PageSpeed and not Lighthouse in DevTools.

After debugging this in pagespeed myself I think Lighthouse is accurately reporting that the page does not paint any content. Not sure why this is only happening in pagespeed but I expect the issue is with the site not rendering anything for certain clients.

@adamraine adamraine closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants