Earlier quoted context omitted.
I think the prime directive of all UI should be, "Ack UI inputs immediately, no matter what else is going on." Throw up a spinner, make something throb, change a status to "loading", anything. Don't just go off and attempt to do it and hope for timely response.
Why can't the browser do this? I mean, it's a universal function / feature, right? And ultimately, it's the browsers that's waiting, not to application per se. (Yeah, I okay. But you know what I mean). I can't think of any good reason why the browsers can't help out with this UI / UX. Am I crazy?
Why I hate your Single Page App
121–128 of 128 posts
Re: Why I hate your Single Page App
#122Earlier quoted context omitted.
You're basing a lot of this viewpoint on fast internet connections. Javascript code rendering will be faster if you have a slow internet connection and are using an updated browser with a fast javascript engine
Eh, I've yet to experience an spa that feels or is faster than the equivalent simple html, no matter what network I'm on - with the exception of being off-line (and I've seen few enough spas that actually work better offline than static pages, ie not broken navigation/functionality). Note that I've of course seen countless slow, bloated static pages - but that's pretty much never because of the tech stack - but becau…
Re: Why I hate your Single Page App
#123This. A thousand times this. And if you do it for a content site, you deserve a special place in hell.
Re: Why I hate your Single Page App
#124Earlier quoted context omitted.
You probably have never tried a classic HTML "app": 1. Every click is fetched and rendered faster than your javascript code has had a chance to execute, let alone fetch or render. 2. True, minor headache though compared to the vast improvements in usability. 3. Nope. 4. Nope, this is a bug - something javascript pages most certainly are not immune against.
You're basing a lot of this viewpoint on fast internet connections. Javascript code rendering will be faster if you have a slow internet connection and are using an updated browser with a fast javascript engine
Re: Why I hate your Single Page App
#125Re: Why I hate your Single Page App
#126Re: Why I hate your Single Page App
#127Earlier quoted context omitted.
I wasn't aware. Are you talking like HTML5? Haven't used local storage before. Thanks for the info.
Yes, see Window.localStorage [1] and this short guide [2]. [1]: https://developer.mozilla.org/en-US/docs/Web/API/Window/loca... [2]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage...
I finally used memcache(d) so that's cool.
Re: Why I hate your Single Page App
#128Earlier quoted context omitted.
Why can't the browser do this? I mean, it's a universal function / feature, right? And ultimately, it's the browsers that's waiting, not to application per se. (Yeah, I okay. But you know what I mean). I can't think of any good reason why the browsers can't help out with this UI / UX. Am I crazy?
Technically, in a SPA, the browser isn't waiting. Clicking the link just triggers a function call.