Are there any performance drawbacks when rendering DOM views at runtime with JavaScript, rather than rendering server-sent HTML?
3rd January 2012
My answer to Are there any performance drawbacks when rendering DOM views at runtime with JavaScript, rather than rendering server-sent HTML? on Quora
Yes, there is quite a significant impact on first-load performance. The browser has to pull down all of the linked scripts before it can display any content—if you’re using a library like jquery that’s a sizeable chuck of code that has to be loaded and executed just on its own.
Modern browsers may be screamingly fast at executing JS, but modern devices aren’t: mobile phones are significantly slower than desktop devices for this kind of thing.
There’s a trade-off in the other direction as well of course—if you are loading subsequent content via ajax performance on further clicks will be better than if you were doing full page refreshes.
To summarise: yes it absolutely affects performance, but that doesn’t mean you should avoid it.
More recent articles
- New release of LLM adds support for reasoning traces, OpenAI Responses, server-side tools, and smarter logging - 4th August 2026
- Stateless MCP has recaptured my interest (and inspired mcp-explorer and datasette-mcp) - 31st July 2026
- OpenAI’s accidental cyberattack against Hugging Face is science fiction that happened - 22nd July 2026