O'Reilly logo

Serverless Single Page Apps by Ben Rady

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Application Shell

When using the app, you may have noticed that reloading the problem view can sometimes cause the landing page markup to temporarily flash onto the screen. This flash of markup occurs when the browser renders the page once before triggering the event that loads the application. This can occur, or not, depending on exactly how quickly the various resources of the application are loaded.

This flash of markup is annoying at best, and confusing at worst. Clearly, this is something we’re going to want to address. The good news is that it’s a pretty simple fix, and the change will create a new and important structure in our application: the shell.

The shell is the visible markup that’s outside the templates and the view ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required