Options
offline
Load the page with the network switched off.
- Type
- boolean
- Default
- false
- Group
- Page behavior
On this page
OverviewLink to this section
With true, the browser behaves as if it had no network connection. It is only useful for pages that can open without one, such as a progressive web app that a service worker serves from its cache.
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: {
offline: true
}
})Good to knowLink to this section
Related optionsLink to this section
Every option, grouped, is in the options overview.
Something unclear or missing on this page?
Tell us