开发者

Is it good to have a lot of content in <head> tag in html document?

开发者 https://www.devze.com 2023-01-27 23:50 出处:网络
I have no idea, but does it make difference if we have heavy amount of content in our html document ?

I have no idea, but does it make difference if we have heavy amount of content in our html document ?

It should not make different, right? Actually, I am trying to load a single page with all text-content in . So, when I click some link, the javascript will write the 开发者_Python百科content for that link rather than reloading another page. Actually, the web site is to be built for small company. And data will be just image + text for each document. Is my approach good idea?

Pre-thanks to all contributors.


Is it good to have a lot of content in tag in html document?

You shouldn't have any actual content in the head section, and there shouldn't be too much in the way of meta data you could put there.

Actually, I am trying to load a single page with all text-content in .

This is generally a poor idea. You end up with one very heavy document that takes a while to load, and the visitor might not care about most of it.

So, when I click some link, the javascript will write the content for that link rather than reloading another page.

Storing the content in JavaScript just makes life difficult. It is complicated to produce, and is unfriendly to search engines, people who want to bookmark or send links to friends, and people who just don't have JS available.

Actually, the web site is to be built for small company. And data will be just image + text for each document. Is my approach good idea?

Probably not. Discrete documents with normal links between them are almost always better for everyone involved.

0

精彩评论

暂无评论...
验证码 换一张
取 消