Currently, I'm loading different parts of the site (header, main, footer) by having separate HTML pages for each element, and then loading these pages into the main page. For example, on the main page I have:
What is the best way to do this? Any help is much appreciated! why don't you use server side language like php?