- Documentation
- Client functions
- setBrowserRenderingPaused
Function
setBrowserRenderingPaused
Pauses or resumes page rendering. A paused page does not load the CPU while it is hidden.
Syntax
bool setBrowserRenderingPaused(browser webBrowser, bool paused)Arguments
webBrowserbrowser- The browser.
pausedbooltruepauses.
Returns
true on success.
Example
local visible = false
bindKey("F2", "down", function()
visible = not visible
setBrowserRenderingPaused(browser, not visible)
end)