Re:Crafting a high-performance TV user interface using React
by diggan on Thursday January 12, 2017 @03:07PM
(#13385640)
Well, sometimes is not much that it's poor code but a lot of data to render. For example, imagine rendering a form with 100 elements. If it takes 0.1 second to render that on a average computer, you can make that 0.01 by rendering it on the server instead.
[ Parent
| on HN ]
Re:Crafting a high-performance TV user interface using React
by jeremiep on Thursday January 12, 2017 @03:11PM
(#13385669)
And then you can cache it. Whats the point of downloading megabytes of javascript, calling 80 different endpoints and then generating what could've been statically saved from the beginning and sent in a single request?
Re:Crafting a high-performance TV user interface using React
by intrasight on Thursday January 12, 2017 @04:10PM
(#13386145)
But your server has to render it for the thousands of visitors to you site. I still don't get the rationale.
Re:Crafting a high-performance TV user interface using React
by Sanddancer on Thursday January 12, 2017 @04:28PM
(#13386277)
Smart rendering would involve using a mostly static template that's updated with the relatively few dynamic elements as the page is being readied to be sent over the wire. If 90% of your dynamic content is the same, why put that through your app processes at all?
Re:Crafting a high-performance TV user interface using React
by intrasight on Thursday January 12, 2017 @10:29PM
(#13388194)
Static stuff is static at either end, and doesn't add to rendering time.