"Generating HTML" on server side is done in some predictable time, while you can't make any assumptions about your users computer/OS performance thus the user experience will be random. It means problems and many lines of javascript code to solve them.