I trying to build a website that serves mostly static content, aside from raw data.
Which means that instead of having the web server create the raw HTML code from data from the database, I want the server to send an initial static frame website that contains js code which then loads the data and posts and such from a REST API on the server and builds the posts on the website from that.
The ultimate goal of this approach is that the browser ultimately caches the site after the first download and from then on only has to load raw data from the server, thus easing the strain on the server.
The problem with this approach is theres no elegant way to serve the basic framework elements of the page (header, body, footer, etc ) piecemeal without using some form of autoconcatenation, like djangos templates for example, which I am purposefully trying to avoid for the above reasons.
I know a while ago chrome introduced
<link href="extern.html" rel="import" />
which would be absolutely perfect, but unfortunately I doesn't work on most browsers (even chrome without config changes).
So basicly the question is, how do elegantly serve exclusively static web content and have the website build itself from the initial frame document, without using templates and such? which would be absolutely perfect for this,