3 ms·
Ask HN: How many pages does the average website have?
Writing Yet Another Static Site Generator and am wondering how much work to put into the MVP's search function. It generates a JSON array of the site keyed by page name, title, and body text. My instinct is simply to do an array filter this time around. If the average site is under, say, 500 pages I assume this will be plenty fast.
My Google fu failed with such queries as "how many pages does the average website have", instead returning pages and pages of articles about SEO and the minimum number of pages a site needs.
In a world as analytical as web development I'm guessing there must be a ton of studies on this subject, but I can't find them.
- deleted 6y ago[deleted]
- wheresmycraisin 6y agoFor questions like these, you'd need to look at the distribution (in the frequency/probability sense), not just the average, of the kinds of web sites you'd like the SSG to make. If your SSG is for ecommerce, sample N sites and draw a histogram. If it's portfolio sites, sample those and do the same. The reason average would not make much sense is that the distribution of page count is definitely not going to be unimodal or symmetric.
- tomcam 6y agoGreat points, thank you
- throwaway888abc 6y ago42
- tomcam 6y agoI knew it!
- speedgoose 6y agoInfinity. You only need one site to have an infinite amount of web pages and your average is infinity.
- tomcam 6y agoDamnit. All along this was staring me right in the face