Mark,
Yeah, it looks like Angular is becoming the standard framework for creating SPAs in our shop. I just haven't had time to learn it yet. (It's a BIG learning curve going from IBM i COBOL to contemporary web development.)
I definitely agree that SPAs are not a magic bullet for every situation. I think an SPA might be useful for static content under some circumstances:
1. If you have valued mobile users that have slow, limited bandwidth connections to the Internet, then an SPA can help minimize the amount of information downloaded from the server. This can improve user experience.
2. If the number of concurrent users is stressing the capacities of your servers, then an SPA can minimize the amount of bandwidth used, and hence the load on your servers.
Even under the circumstances of a static website, it can depend. If your website is basically a bunch of links to PDF files the users have to download, then I don't know how much an SPA would help for static content in the form of PDF downloads.
Thanks,
Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Mark Murphy/STAR BASE Consulting Inc.
Sent: Tuesday, August 04, 2015 1:43 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] A Responsive Single Page App (SPA) with 3 Issues to Consider
I guess this comes down to using the right tool for the job. SPA's sound like a good tool to build an interactive database application where a "page" really doesn't make sense. Why would you want to drop into the middle of a transaction, or would that even be a good thing to do? But, for navigating a corporate web site that is document based, it just doesn't seem to fit the bill. I don't see one approach ever fitting all situations. Maybe what you really need is an MVC framework providing navigation with the content being your SPA when appropriate, and static pages when that is appropriate.
Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx
-----Kelly Cookson <KCookson@xxxxxxxxxxxx> wrote: -----
To: "Web Enabling the IBM i (AS/400 and iSeries)" <web400@xxxxxxxxxxxx>
From: Kelly Cookson <KCookson@xxxxxxxxxxxx>
Date: 08/04/2015 01:43PM
Subject: Re: [WEB400] A Responsive Single Page App (SPA) with 3 Issues to Consider
One thing I have grown to dislike about having a single page app is browser caching. I make changes to the files used for content within the single page app, but I often have to clear my browser cache for the changes to show up.
Add this to the fact that users cannot add particular "pages" to their browser favorites. A favorites link always takes the user to the home page.
I'm guessing there are methods for getting around these issues. If this were going to be a large website that a business had to spend money to maintain, or a website used by tons of people where maximum performance was a necessity, then I would probably do more research to resolve the above issues. I definitely see the maintenance and performance benefits of single page apps.
But this is just a hobby site and unlikely to be used by many people. I don't mind spending time on it because, well, that's what hobbies are for...spending time. So I'm going back to making it a traditional web site with multiple HMTL files.
The link
http://www.socialhope.info/code/SocialHope_REBOOT.zip will continue to have the source code for the single page app version of the website, for those who find this thread in a search or simply want to download the code later.
Kelly Cookson
IT Project Leader
Dot Foods, Inc.
1.217.773.4486 ext. 12676
kcookson@xxxxxxxxxxxx
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.