Prototype Not Loading in Browser? Fix It Step by Step
In this article
If a prototype won't load in your browser, the quickest fix is to open the browser's developer console and read the first error, then check the URL and the file path it points to. Nine times out of ten the page is loading but an asset (script, stylesheet, font, image) is 404ing or a script is throwing before the UI renders. Work through the steps below in order and you'll usually find the cause in under five minutes.
What You'll Need
- The prototype open in a desktop browser (Chrome, Edge, Firefox or Safari) — mobile browsers hide the console, which makes diagnosis much harder.
- The exact URL or file path you were given, including any query string or port number.
- Permission to open developer tools (F12 or Ctrl+Shift+I on Windows/Linux, Cmd+Option+I on Mac).
- Access to the project folder or repository if the prototype runs locally.
Step-by-Step
- Confirm the URL is correct. Compare the address bar against the link you were sent, character by character. A missing trailing slash, a wrong port (for example
:3000instead of:8080), orhttpwherehttpsis required will all produce a blank page or a connection error. If the link uses a local address such aslocalhostor127.0.0.1, the prototype must be running on your own machine — it will not load from someone else's computer. - Open the developer console. Press F12 (or right-click the page and choose Inspect), then select the Console tab. Reload the page. The first red error is almost always the real cause; later errors are usually knock-on effects. Read the file name and line number it mentions.
- Check the Network tab for failed requests. Reload with the Network tab open and look for rows shown in red or with a 404, 403 or 500 status. A 404 means the file path is wrong or the file wasn't uploaded; a 403 means permissions; a 500 means the server-side code failed. Click the failing row to see the full request URL — that is the path your prototype is actually asking for.
- Fix obvious path problems. If the console shows 404s for scripts or styles, the usual cause is a relative path that only works from one location. Paths beginning with
/are resolved from the site root, while paths beginning with./or no slash are resolved from the current page. If the prototype was moved into a subfolder, update the references or move it back to the root. - Start the local server if required. Many prototypes (React, Vue, Vite, plain npm projects) will not work when you double-click the HTML file — the browser blocks module scripts and some fetch requests from
file://URLs. Open a terminal in the project folder and run the start command listed in the project's README orpackage.json(commonlynpm installfollowed bynpm run devornpm start). Then open the address the terminal prints, usually a localhost URL with a port number. - Clear the cache or hard-reload. If the prototype loaded before and now shows an old version or a blank screen, the browser may be serving a cached copy. Use Ctrl+Shift+R (Cmd+Shift+R on Mac) to bypass the cache, or open the page in a private/incognito window to rule caching out entirely.
- Disable extensions temporarily. Ad blockers, privacy extensions and script blockers can block prototype assets, especially analytics or font scripts. Open the prototype in a private window with extensions disabled; if it loads there, re-enable extensions one at a time to find the culprit.
- Try a different browser. If it works in one browser but not another, the issue is usually a feature the prototype relies on (module scripts, certain CSS features, or a browser-specific API). Check the console in the failing browser for a message about an unsupported feature.
- Check the server or hosting status. If the prototype is hosted online and the page times out or returns a 5xx error, the problem is on the hosting side, not your browser. Confirm the service is running and that the deploy completed; re-deploy if needed.
- Reinstall dependencies if running locally. A missing or corrupted
node_modulesfolder produces build errors that stop the page from rendering. Delete the folder, run the install command again, and restart the dev server. This only affects the project's dependencies, not your personal files.
Common Mistakes
- Opening the HTML file directly from the file manager when the project expects a local server — module scripts and fetch calls fail silently or with CORS errors.
- Ignoring the first console error and chasing later ones, which are usually consequences of the first failure.
- Assuming a blank white page means nothing loaded; check the Network tab to see whether the HTML arrived and only the assets failed.
- Using an old bookmark or cached tab instead of the current URL, so an outdated build keeps appearing.
- Testing on a phone first, where the console is unavailable and the error is harder to see.
Tips
- Keep the console open in a separate window while you reload — errors appear immediately and are easy to miss otherwise.
- Copy the failing request URL from the Network tab and paste it into a new tab; the response often explains the problem (for example a plain-text error message from the server).
- If you are sharing a prototype with someone else, send the exact URL from your address bar after confirming it loads in a private window.
- Note the browser and version when reporting a bug; behaviour can differ between Chrome, Firefox and Safari.
Troubleshooting
If the page is completely blank with no console errors, view the page source (Ctrl+U) to confirm the HTML actually contains content. An empty body usually means the server returned an empty file or a redirect loop. If you see a CORS error in the console, the prototype is trying to fetch data from a different origin than the one serving the page; the fix belongs in the server's headers or in the prototype's configuration, not in the browser. If the console shows a syntax error in a script, the file may have been truncated during upload or a build step failed — rebuild and re-upload. If the dev server starts but the browser shows "connection refused", the port may be in use; stop the other process or let the tool pick a different port and use the URL it prints. If nothing works, open the prototype in a private window with all extensions disabled and a cleared cache; that isolates browser state from project problems.
Frequently Asked Questions
Why does my prototype load on one computer but not another?
The most common reasons are a different browser version, a missing local server, or a cached build. Compare the console output on both machines; the failing one will name the missing file or unsupported feature.
Can I open a prototype by double-clicking the HTML file?
Only for simple static prototypes. Projects that use module scripts, fetch requests or a build tool generally need a local server, because browsers restrict those features on file:// URLs.
What does a 404 error mean in the Network tab?
The browser asked the server for a file at a specific path and the server could not find it. Check the request URL, then confirm the file exists at that path and the capitalisation matches exactly.
Why is the page blank but the console shows no errors?
The HTML may have loaded but a script failed before rendering, or the body is genuinely empty. View the page source and check the Network tab for a failed document request.
Does clearing the cache delete my prototype files?
No. Clearing the browser cache only removes stored copies of web pages and assets from your browser. Your project files on disk or on the server are unaffected.
Should I reinstall my browser to fix this?
Rarely. Try a private window with extensions disabled and a hard reload first. Reinstalling the browser is a last resort and does not fix project-side errors.