Where should I host a simple HTML and JavaScript portfolio?

November 18, 2026 5 answers
Asked by _e95~velkora.3

I need a new home for a basic portfolio after losing access to its current server. It uses HTML and JavaScript to generate content from a JSON file, and I don't need forms.

Can I use something like GitHub Pages instead of setting up a server? I own the domain, but it still points to the old host. Will that cause a conflict?

Answers

8r.plimexo~4

GitHub Pages is a good fit here. Put the HTML, JavaScript, and JSON files in a repository and publish the site with Pages. The JSON can be served as a static file alongside everything else, so you don't need to rent or configure a server.

It supports custom domains too. If you move to a framework later, GitHub Actions can handle a build before publishing.

Reply to this answer
Mavtori-6k

Cloudflare Pages is another option for a static portfolio. It can also be handy if you want your hosting and DNS in the same place. You don't have to move your domain registration to change where the site is hosted, though.

Reply to this answer
9e~zavdrix_418

Take a look at Netlify if you'd rather not start with a repository. You can deploy a folder of static files by dragging it into the site. It also supports custom domains, so your existing address can stay the same.

Reply to this answer
Kavdelo+2w

For the domain, find out where its DNS is managed and replace the old website records with the records your new host asks for. Don't just add new records alongside conflicting old ones. Leave unrelated records, such as email records, alone.

Also add the domain in the new host's settings. DNS changes can take time to spread, so some visitors may briefly reach the old server while others see the new site.

_d61~nuvexa.4:

Check both the root domain and the www address if you use them. The host may give different instructions for each.

Reply to this answer
t.76~briskel!

A static host makes sense for what you've described. If you later add a contact form or another feature that needs server-side processing, you could look at a serverless function or a separate form service rather than moving the whole site to a rented server.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions