Hello folks,
what is the best way (i.e standard way that is supported on all browsers and probably as well followed by web crawlers)....
.... to include an html file either locally or externally in another ?
Of course , i've done the research and i also know that there are server side includes (php , asp ...you name it) but that is out of the question!
at the moment , i'm using this:
Quote:
<script type="text/javascript" src="path to file/include-file.js"> </script>
|
however, i've been warned that this method may not show up in some browsers as some tend to ignore this tag and that crawlers like your favorite search engine wouldn't bother reading this.
so , what is the best and safest way to do the job?
please note that browser compatibility is the highest priority , seo is a distant second concern.
and btw , the reason why i've ousted SSI's from the start is because of among other things:
1) the fact that the included file is static html and because the text is included pretty much everywhere
2) hoping to reduce load time as the code (if successfully recognized) would hopefully be treated like any other embedded external file (e.x like an image) , therefore it would be cached without the need to downloaded it over and over again for each new page on the site.
cheers