DEV Community

Discussion on: Optimize your JS code in 10 seconds

 
efpage profile image
Eckehard

But things are shifting. There are a lot of SPA´s out there that just require some data and have no backend.

Thread Thread
 
elsyng profile image
Ellis

Aah, a lot of SPA's with a lot of data and million-loops, and no backend. I really know nothing about those, I don't even know an example case (feel free to share a url), but I'll take your word for it ;o)

Thread Thread
 
efpage profile image
Eckehard

See here, here, here, here, here, here, here or here.

This is from the vue-documentation:

Some applications require rich interactivity, deep session depth, and non-trivial stateful logic on the frontend. The best way to build such applications is to use an architecture where Vue not only controls the entire page, but also handles data updates and navigation without having to reload the page. This type of application is typically referred to as a Single-Page Application (SPA).

If you just have a database running on a server, I would not call this a "backend". React or Vue can run completely in the browser, so you just need a webserver and some API endpoints to get your data. An application like this would not run much faster, if you try to put the image processing on the server, but it´s worth to see, what causes the delay.

Thread Thread
 
elsyng profile image
Ellis

Thanks a lot, i will read👍

Thread Thread
 
mdledoux profile image
Martin Ledoux

dev.to/efpage/comment/2b22f

But things are shifting. There are a lot of SPA´s out there that just require some data and have no backend.

Realistically, they're getting the data from some backend somewhere, just not necessarily maintained by the maker of SPA. There are a lot of public APIs out there that can be consumed (which is how an SPA could have no backend but still huge data sets), and theoretically filters can be passed in requests to limit or prevent large data sets in the response.

Some comments have been hidden by the post's author - find out more