Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the advantages and disadvantages of a web site that contains a single page? [closed]

Tags:

web

I would like to code a little web site that will contain several sections like "Home", "Gallery", "Contact Us", "FAQs", and so on.

I thought to do this in one HTML by putting each section in a div and show only one div per time (using Javascript / jQuery), based on the chosen menu button.

Alternatively, I could create a separate HTML page per section, and link these pages to the menu buttons.

What are the advantages and disadvantages of these two methods ?

like image 697
Misha Moroshko Avatar asked Jun 02 '10 12:06

Misha Moroshko


2 Answers

The first method means longer loading times since you have to load everything on the site up front, and it's totally broken for people who have disabled Javascript or whose browsers don't support it. The second method means the user only has to load the content they are actually looking at, and it should work even with non-Javascript browsers.

like image 78
Paul Tomblin Avatar answered Nov 22 '22 03:11

Paul Tomblin


The main disadvantages that comes to mind for the first method are:

  • Poor SEO: Google will only see your home page as Google bot doesn't execute javascript.
  • Back/Forward buttons won't work.
  • Takes longer time to load initially.
  • As site becomes bigger, it'd need more memory and might slow down the browser and even the machine
like image 36
Amarghosh Avatar answered Nov 22 '22 04:11

Amarghosh