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
As an Amazon Associate we earn from qualifying purchases.