Options
allowJs
Run the page JavaScript.
- Type
- boolean
- Default
- true
- Group
- Page behavior
On this page
OverviewLink to this section
With false, the page loads with JavaScript switched off, like a browser that has scripts disabled. It is handy for pages rendered on the server, for checking what visitors without JavaScript get, and for pages whose scripts get in the way of a clean shot.
ExampleLink to this section
The same request with the SDK, with cURL and as the raw JSON body.
screenshot.ts
import { Url2Image } from '@url2image/sdk'
const { success, data, message } = await Url2Image({
url: 'https://example.com',
token: process.env.URL2IMAGE_TOKEN,
options: {
allowJs: false
}
})Good to knowLink to this section
Related optionsLink to this section
allowServiceWorkersLet the page register service workers.scriptJavaScript added to the page right before the capture.
Every option, grouped, is in the options overview.
Something unclear or missing on this page?
Tell us