Skip to main content

Server-Side Rendering

  • Chapter
  • First Online:
  • 844 Accesses

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   37.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    For example, there is a webpack plug-in for prerendering pages at https://github.com/chrisvfritz/prerender-spa-plugin .

  2. 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

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Yiyi Sun

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics