klyn.gui.windows.browser.BrowserWidget.navigateToStringAsync
method
public navigateToStringAsync(html as String, baseUrl as String = "about:blank", appendHistory as Boolean = true) as Void
Description

Prepares in-memory HTML, styles and text layout on a background worker. The current page stays visible and interactive until its replacement is ready. At most one worker and one latest pending snapshot are retained; superseded results never replace a newer document. Resize, theme changes and content zoom automatically prepare a new detached display list. Uses the same inline-style and script semantics as navigateToString.

Parameters
ParameterDescription
htmlComplete HTML source; null is treated as empty.
baseUrlBase URL for relative links and images.
appendHistoryWhether the completed replacement adds a history entry.
Throws
  • Exception when starting the preparation worker fails.
Example

browser.navigateToStringAsync("<h1>Live conversation</h1>", appendHistory=false)