Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

246
Views
Is Svelte limited to single-page applications (SPA)?

The Svelte documentation states that:

Svelte converts your app into ideal JavaScript at build time, rather than interpreting your application code at run time.

...

It is similar to JavaScript frameworks such as React and Vue...

In the context of the above my question is:

Is Svelte limited to building single-page applications (SPA) and can it be used for creating multi-page applications (MPA)?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Is Svelte Limited to Building Single-Page Applications?

No. Svelte is a way of building components. Svelte compiles to vanilla JS classes so you can easily include it as a small component doing something specific on a page or as a component that acts as a full page in a MPA structure (both initiated at runtime).

Can It Be Used for Creating Multi-Page Applications (MPA)?

Not with Svelte directly (since it just produces components) but it is possible with SvelteKit. I honestly thought that SvelteKit was a SPA framework (because it behaves like one) but apparently it does create real html entry points for all your routes. After the initial page load it just swaps out the parts of the web page that needs to be updated and no more full page loads are done hence the quick navigation speed and you get the benefits of server-rendered MPAs as well!

about 4 years ago · Juan Pablo Isaza Report

0

As you've already noted, Svelte is wonderful because it compiles into vanilla JS. Therefore, you can use compiled Svelte to replace even existing vanilla pages. Although I haven't tried it, I would imagine it works with Express if you want to use that. As pointed out by cascading-jox, SvelteKit is a neat integrated method to route your pages. Documentation for it seems to make it look quite similar to Next.js routing.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!