beenotung / ts-liveview

Build hybrid SSG and SSR realtime SPA/MPA with Typescript
https://liveviews.cc
BSD 2-Clause "Simplified" License
168 stars 2 forks source link

stunning lighthouse rating :-) #18

Open hpvd opened 1 year ago

hpvd commented 1 year ago

you seems to do everything right and got a stunning lighthouse rating for the demo on https://liveviews.cc/ :-)

see: 2023-04-17_12h11_01

hpvd commented 1 year ago

of course there is always one comment ;-)

Pages with WebSocket cannot enter back/forward cache.

see: 2023-04-17_12h25_34

hpvd commented 1 year ago

and one type of page is still missing in demo... see https://github.com/beenotung/ts-liveview/issues/19 :-)

beenotung commented 1 year ago

to better support back/forward navigation and avoid hanging when ws connection is not stable, it seems worth the effort to explore doing long polling with http2 as an option when the site prefer low-latency over high throughput (which should be the case for most websites)