Skip to content

Troubleshooting ​

Most problems after an edit show themselves in one of the places below: a notice over the page, a line in the browser's console, or a visit that reloads the whole page. Each section starts with what you see.

The page shows "Please use a web server" ​

DANGER

Please use a web server to view this page.

A page opened from disk shows this notice instead of the site

The page was opened from disk, with a double click on its file, and browsers refuse to run its scripts that way. Nothing is broken: open the HTML folder through a web server, your editor's or your host's. Run it on a web server shows how.

A part of the page does nothing after an edit ​

Open the browser's console: F12, or Cmd+Option+J in Chrome on a Mac. The template names every mistake it can see in a line that starts with "Velum:", and the tag it found it on is printed beside the message: click it to see where it is in the page.

DANGER

Velum: the options of this TextContent are not valid JSON, so it runs with its defaults.

The data-arts-component-options of that component lost a quote, a comma or a brace. It still runs, but with its default settings. Compare the line with the same component on a page you did not edit: the options are JSON inside single quotes, every key and text in double quotes.

DANGER

Velum: no component is named "Infogroup".

The data-arts-component-name holds a name no script has, here a misspelled InfoGroup. The part shows, but its script never runs: no entrance, no hover, no slider. Write the name back exactly, capitals included.

DANGER

Velum: "speed" in js/config.js must be a number above 0. Using 1.

A setting in js/config.js has a value of the wrong kind: here '2', a text in quotes, where a number belongs. The message says what the setting takes and which value the site uses meanwhile. Each setting's comment in the file names its values: config.js.

A visit waits for the next page for at most 20 seconds, the timeout in js/config.js. A page that takes longer is loaded by the browser as an ordinary page, with no transition and no message. If it happens on a slow host, raise it:

js
/** How long a page may take to arrive, in milliseconds, before the browser loads it instead */
timeout: 30000,

When every link of a page reloads, however fast, the page you leave runs without AJAX transitions: its head lacks the line of js/features/ajax-transitions.js. See Turn a feature off.

My script runs on the first page only ​

js/custom.js loads once, on the page the visitor opens first. The pages they reach through AJAX transitions arrive without a reload, so code that must run on each of them goes inside onPage(): AJAX transitions and your own scripts.

The pictures are plain boxes ​

The download carries a placeholder of the right size in place of every photo of the demo, with its size written on it. Save your pictures over them under the same names: Pictures and video.

Next: FAQ.