0
<nav class="navmenu center">
<ul>
<li class="first scroll_btn active" onclick="atualizarPagina('Home.htm');"> <a>Home</a></li>
<li class="scroll_btn" onclick="atualizarPagina('Empresa.htm');"><a>Empresa</a></li>
<li class="scroll_btn" onclick="atualizarPagina('Servicos.htm');"><a>Serviços</a></li>
<li class="scroll_btn" onclick="atualizarPagina('Contato.htm');"><a>Fale Conosco</a></li>
</ul>
</nav>
<div id="conteudoHome">
...
</div>
<div id="conteudo">
</div>
function atualizarPagina(site) {
if (site == "Home.htm") {
$("#conteudoHome").css("display", "block");
$("#conteudo").css("display", "none");
}
else {
$("#conteudoHome").css("display", "none");
$("#conteudo").css("display", "block");
$.get(site, function (data) {
$("#conteudo").html(data);
});
}
void (0);
scroll(0, 0);
}
Every page, for example Enterprise.htm, has only one container html.
So when the user accesses the site as www.x.com.br/Company.htm, it doesn’t matter the css and js of the index, and loses all the website formatting.
I wanted to know how to make sure that when accessing www.x.com.br/Empresa.htm, imports all the css and js.
And taking advantage of the question, I wanted to know if this type of site (not containing a complete structure for each page) compromises something of SEO, like google indexing these things, because I read in some places that affect SEO.
The use of masterpage is a better option, on the site in general?
– Diego Zanardo
@Diegozanardo Based on your problem, it is the best of the solutions I have presented. Are you using C#? If yes, without a doubt is the best option.
– Guilherme Oderdenge
Always prefer to load a CSS file using <link> rather than@import. When you use '@import' option from an external style sheet, the browser is unable to perform the download in parallel, which causes delay in the file loading cascade. source : http://browserdiet.com/pt/#prefer-link-over-import
– rcarvalho