I searched a lot, but nobody seems to have explained this nor given a proper example.
I have a page like this:
My team says they want to design the code such that the
Menu section and
Footer sections would each be kept in separate
HTML files and they'd have separate
JSP files for every page, where each
JSP file would dynamically load the
footer.html files using
My suggestion to them was to use a single
HTML file which already contains the
Footer, and just load the
Center content dynamically (single page app).
I have three questions:
1. For a web app that needs to use as less network bandwidth as possible, is it better to use a single page app approach or the load-multiple-pieces-of-a-page approach? Percentage-wise, would it result in a large change in bandwidth if the
Title only contained a small brand logo and text, and the
Footer just contained text and styles.
If content is to be loaded dynamically into a page, since
frameis deprecated and I hear that
iframeis not encouraged, is an ordinary
divthe best option to load
Centercontent or the
Footeretc. OR is there a better way to load it such that it'd work in
When pages are kept split as
menu.htmletc., do they have to contain the
tags or can they just contain the necessary
's? Do the loadedHTML` pages inherit the parent page's properties?