Abstract
The single-page application (SPA) has become popular because it has a smooth and fluent user experience more like a native desktop application or even a native mobile app. This approach solves the problem of being interrupted by a white/blank screen caused by reloading the full page on the server side. However, an SPA comes with its own problems. It tends to be slow on startup because the application code is compiled into client-side scripts. The scripts usually are large files that require some time to download and parse. When the browser is downloading and parsing the scripts, the screen is blank when the application is starting. Users have to wait. Besides, the JavaScript rendered content is not search-engine-friendly.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
For example, there is a webpack plug-in for prerendering pages at https://github.com/chrisvfritz/prerender-spa-plugin .
- 2.
For more information about the Razor syntax, please visit https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor?view=aspnetcore-2.1 .
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Yiyi Sun
About this chapter
Cite this chapter
Sun, Y. (2019). Server-Side Rendering. In: Practical Application Development with AppRun. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4069-4_9
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4069-4_9
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4068-7
Online ISBN: 978-1-4842-4069-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books