DEV Community

Cover image for Single Page Applications (SPAs) vs. Multi-Page Applications (MPAs). Navigating the Web App Landscape
Dalmas Chituyi
Dalmas Chituyi

Posted on • Edited on

Single Page Applications (SPAs) vs. Multi-Page Applications (MPAs). Navigating the Web App Landscape

Yes, you can create webpages that hide the internal structure of your website's URLs from users. This technique is called a Single Page Application (SPA) or client-side routing. Here's how it works.

  1. The entire website acts as a single HTML page.

  2. JavaScript dynamically loads content and updates the page based on user interaction (e.g., clicking menus).

  3. The URL bar might only show the domain name (www.example.com) regardless of the specific page the user is on.

Security Considerations.
Reconnaissance. Hiding URLs might make it slightly harder for attackers to understand a website's structure, but a determined attacker can still discover it through various techniques.

Plotly Dash is a framework for building analytical web applications and it natively builds single-page applications (SPAs). With Dash, you create your UI using Python, but under the hood, it’s generating a web-based SPA. This means that user interactions in the application can update the visuals on the page without requiring a full page reload. This makes Dash applications very responsive and efficient. However, it’s also possible to build multi-page applications with Dash by defining different “routes” or URLs for each page, but the core concept remains around SPAs.

[https://www.linkedin.com/pulse/single-page-applications-spas-vs-multi-page-mpas-web-app-chituyi-icknf/?trackingId=S9rFiiZlRQG90q8FgeSunw%3D%3D]

Top comments (0)