MenuTroubleshooting / My page is blank or froze

Docs / Troubleshooting

My page is blank or froze

A page that shows nothing has not run, or threw an error. A page that froze can be stopped on its own.

On this page

A blank page

If the page pane says Run it to see the page, this tab has no page yet.

No page yet: the Snippet has not run in this tab.
  1. Press Run, or press ⌘↵ or Ctrl+Enter.
  2. If the rail shows a shield, the page’s code uses fetch or another way to reach outside, so it waits for Run. See My code did not run as I typed.

If the page ran but is empty or wrong:

  1. Read the console beside the page. Errors from the page’s code are printed there.
  2. Fix the code. Where an error names a line, click it to go there.

A page that froze

Code that never pauses, such as a loop that never ends, freezes the page. The page runs in its own process, so the rest of JSpark keeps working. JSpark covers the page and says so:

Stop page ends only the page; the editor and other tabs keep working.
  1. Press Stop page. Hiding the page, or moving to another tab, does not stop it.
  2. Fix the loop or the code that never pauses.
  3. Run the Snippet again.

See Web pages for how a page runs.

The pictures show JSpark on a Mac. On Windows, the window looks a little different and uses Ctrl for ⌘, but everything works the same way.

Esc

Type to search every docs page.