Hacker News new | ask | show | jobs
by sneak 1900 days ago
Javascript aside, more things can and should be static sites.

(More things should render their basic, static-site content without having to exec js, too.)

The web would be a lot better if this were the case.

1 comments

I believe you can still do this in Next.js with some extra work to exclude the JS bundle. For example, you can use a custom `_document` page and exclude the `NextScript` component [1]. It would be nice if this was supported as a first-class concept, though.

[1] https://nextjs.org/docs/advanced-features/custom-document