Rendering HTML with JavaScript is different than rendering HTML that's sent by the server—and that can affect performance.