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

Get Serverless Single Page Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.