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

Loading the Application

Just like any web page, our single page app has to be loaded. Modern browsers are sophisticated when it comes to loading content from the Internet, but a simplified version of what happens goes something like this: when you enter a URL, the browser fetches the file specified in the URL and downloads it. Once the file is downloaded, if it is HTML, the browser will start downloading other assets specified in the markup, such as CSS, JavaScript, fonts, images, or videos.

Joe asks:
Joe asks:
What About the Test?

You may have noticed that I didn’t cover how to write a test for the code in the <script> tag in our index.html. Could I? Yes…but ...

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