Closed anarazel closed 2 years ago
For me this makes rendering go from > 4s to < 0.5s in firefox.
Interesting. I will get comments from my expert in this area.
FWIW, even if the rendering performance benefits down turn out to be not as large for others, just reducing the size of the status page output due to removing redundant data (alt, height, width) out-of-line seems like a good idea.
Yeah. My web guru has given it in principal approval, so I will move on it shortly.
See b463cd429d3e5
Thanks!
It's nice how snappy the frontpage now feels. And a bit absurd that moving things around like this can have such an impact.
Only tested on the html output locally (with a regex), so this probably doesn't quite work as-is.
The flag_imgs hash could now be a list, but I didn't know how to do that syntaxwise.
The resulting html could also be significantly reduced in size by just removing a few unnecessary newlines etc...