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

SSE (Server Sent Events) causes lighthouse to timeout #16187

Closed
3 tasks done
wont-stream opened this issue Sep 18, 2024 · 1 comment · Fixed by #16225
Closed
3 tasks done

SSE (Server Sent Events) causes lighthouse to timeout #16187

wont-stream opened this issue Sep 18, 2024 · 1 comment · Fixed by #16225
Assignees

Comments

@wont-stream
Copy link

FAQ

URL

https://gravel-gilded-shirt.glitch.me/sse.html

What happened?

Quick backstory, was using WebSockets on my website for omnidirectional data sending and saw lighthouse saying WebSockets causes issues with bfcache, no issue there.

Changed my implementation to SSE as they're made for one direction data sending anyway, now it causes lighthouse to wait until the (set?) timeout finishes, dropping a warning message

"The page loaded too slowly to finish within the time limit. Results may be incomplete."

What did you expect?

Proper implementation of SSE, especially since using WebSockets causes a fail under performance in lighthouse which may lead developers to using SSE.

What have you tried?

How were you running Lighthouse?

Chrome DevTools, web.dev

Lighthouse Version

12.0.0

Chrome Version

126.0.6478.251 (Official Build) (64-bit)

Node Version

No response

OS

Windows

Relevant log output

No response

@wont-stream
Copy link
Author

Unrelated note, I notice when running test from pagespeed.web.dev, it fails to connect to both WebSockets and SSE endpoints, I assume its intentional though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants