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.
Run it to see the page
- Press Run, or press ⌘↵ or Ctrl+Enter.
- If the rail shows a shield, the page’s code uses
fetchor another way to reach outside, so it waits for Run. See My code did not run as I typed.
If the page ran, drew nothing and logged an error, the pane says Nothing rendered, and the page logged an error. It ends with see line 4, a link to the line of the first error the page threw, or with see the console when the page only called console.error.
If the page ran but is empty or wrong:
- Click the link, or read the page’s Console tab. Errors from the page’s code are printed there.
- Fix the code. Where an error names a line, click it to go there. A line in the HTML Part, from an inline script or an
on…handler, opens the HTML Part.
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:
Components and hooks
3
−+The page froze
Only the page is stuck. Hiding won’t stop it.
Stop page- Press Stop page. Hiding the page, or moving to another tab, does not stop it.
- Fix the loop or the code that never pauses.
- Run the Snippet again.
See Web pages for how a page runs.
The pictures show JSpark on a Mac. On Windows, the window buttons are at the top right, the menus are in theMenu button at the left end of the tabs, and shortcuts use Ctrl where a Mac uses ⌘. The rest works the same way.