/    Sign up×
Community /Pin to ProfileBookmark

Is One Page SIte Badder Than Many Page Site ?

Folks,

Imagine a searchengine that logs what you are searching and clicking. Imagine it has these pages:
register.php
login.php
logout.php
members.php (members list shown in pagination format)
profile.php (member profile page)
search.php (shows search results in pagination format)
submit.php (submit links).

Now imagine, instead of having 5/6 pages you just have one page:
index.php
And imagine this page has functions:
register
login
logout
search
members
profile
submit

And imagine these functions get triggered based on the params in the url ($_GET).
So if url is:
mysite.com/index.php?page_type=login
then the login() gets triggered.
And if the url is:
mysite.com/index.php?page_type=profile&profile=nogdog
Then you do the imagination.

My big question is, is it ok to have a dynamic one page site compared to the many page site ?
I’m guessing there won;t be any page loading problems after-all one page site or many page site, they’re all hosted on the same server and served by the same server.
So if 10k visitors come to the many page site where all the 5/6 pages are being viewed then if it takes 5 secs for each page to load to each visitor then the same would happen (no better & no worst) if 10k visitors were viewing the one page site. The one page would take likewise 5 secs to load on each 10k visitor’s screens. My point is, it doesn’t make any difference in terms of how long each page would load no matter if you were running the many page site or the one page site because it all depends on the server. How big it’s resource is and bandwidth and internet physical line and how many visitors visiting the same physical server. Nothing to do with how many different types of pages the server is serving.
Am I right ?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@developer_webauthorAug 07.2021 — 4 months and no reply ? A simple question really.
Copy linkTweet thisAlerts:
@sibertAug 07.2021 — > @developer_web#1635264 A simple question really.

There is no best answer. Just "it depends".

I found this on Google. https://dzone.com/articles/the-comparison-of-single-page-and-multi-page-appli

Personally I hate "Dead Sea Rolls". I find the navigation a nightmare. But this is just an opinion...
×

Success!

Help @developer_web spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 3.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 10 SATS,
)...