News for hackers. Stuff that matters.
Re:Vue.js and Brunch: Webpack Alternative by Method-X on Monday August 21, 2017 @02:17PM (#15066453)
The loading spinners happen when data is being fetched from the database. The app itself is downloaded upon initial load and anything from the database will trigger a loading spinner as it's being fetched.
Re:Vue.js and Brunch: Webpack Alternative by Hedja on Monday August 21, 2017 @05:13PM (#15067904)
Just thought I'd share my experience with this, since I had a similar problem.

Spinners make it look like the app is taking ages to load data, even if it's not. If you delay showing the spinner until around a second of loading, it makes things feel a lot faster.

The user doesn't need to always know when the app is loading data until there's a significant pause and they need to know stuff is happening.

Re:Vue.js and Brunch: Webpack Alternative by TekMol on Monday August 21, 2017 @03:07PM (#15066868)
Yup, I got that. But couldn't a bit of text be loaded instantly instead?

Is the time the spinners run determined by the time the server needs to deliver the data? Would they go away when you put the site behind a CDN that delivers the data faster?

Re:Vue.js and Brunch: Webpack Alternative by chickenfries on Monday August 21, 2017 @04:24PM (#15067546)
> But couldn't a bit of text be loaded instantly instead? Yep. You could code your website in such a way to use a mix of serverside rendering and ajax components. This has always been true. Consider something like a server-rendered blog post that has a client-rendered Disqus widget.

> Is the time the spinners run determined by the time the server needs to deliver the data?

Basically. But you can also render your react app or vue on the server and then have client side rendering take over once the page is loaded. This is perhaps the ideal case but it's more complicated and takes some work to set up (I haven't actually done it).