Is there a way to include an .html file into another page using javascript or jQuery, for example a header and a footer file, as these remain the same throughout whole project. The issue I can see with using jQuery is that it will probably be inside one of such files, hence not loaded before it is used, so I would assume javascript would be a better choice.
If such method exists will it cache loaded / included files as well?
Ideal solution would not require usage of containers to load data into, but instead include a file as is in place where include code is specified.
EDIT: As to some suggestions .load method can be used, but lets say I needed to load tag and its contents like css files, some javascript etc wich is used on whole pages, it seems incorrect to load it into a div, is there a way to achieve it? Is usage of $(document).load("header") a possible solution?