logoalt Hacker News

whilenot-dev • today at 9:06 AM • 0 replies • view on HN

> A new site these days is more likely to be a React SPA with several megabytes of scripts than "static" in the old sense, i.e. a bunch of HTML files and linked assets.

I think this idea is outdated by at least 5 years, as almost every predominant SPA library/component framework changed to components running server side. React with Server Components/Next.js, Vue with Nuxt, Svelte with SvelteKit, etc. JavaScript is again just "linked assets" for the client.

Besides, most scannable websites are probably landing pages, and SPAs are usually behind login forms.

> Most tools just look for the "Generator" meta tag and assume that no CMS was used if it is not present.

Yeah, this seems pretty unreliable. Even with SPAs, requests rarely go directly to a CMS and there's usually at least one API in between (think BFF and microservices). Most modern CMSs are predominantly headless.

I doubt that the detection of frontend frameworks is reliable either. JavaScript gets bundled and minified, on rare occasions even optimized and obfuscated, depending on team and product. If there's nothing inserting HTML meta tags, like paid themes for landing pages usually do, that statistic isn't very easy to achieve either.