Documentation
¶
Overview ¶
Package render estimates how much of a page depends on JavaScript, which most AI agents do not execute.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(raw, rendered []byte) *types.RenderResult
Compare measures how much visible text only exists after JavaScript runs.
Types ¶
type Options ¶
type Options struct {
// Timeout bounds the whole render.
Timeout time.Duration
// Wait is how long to let scripts run after the DOM is ready.
Wait time.Duration
// UserAgent is sent by the headless browser. Empty keeps Chrome's own.
UserAgent string
}
Options configures headless rendering.
Click to show internal directories.
Click to hide internal directories.