Open CoolSpring8 opened 4 years ago
For 3: Well, I'm not sure if browsers really start rendering one element before its downloading finishes.
The current behavior is that "Waiting (TTFB)" takes a long time, and "Content Download" phase finishes like lightning (as rwppa runs locally).
As introducing streaming text replacement will add overhead and requires more work, it would be better to know if this have a perceivable impact on user experience.
An extra bonus would be being more stable and have a lower memory usage.
So, if having decided to optimize this:
Currently we have this in
internal/proxy/proxy.go
:As the comments indicates, there are several problems.
Solutions and plans:
And one more small thing: CSS files can probably be excluded from being applied with this handler.