Garry's Mod Wiki

Garry's Mod Wiki

  boolean Panel:IsLoading()

Description

Determines whether or not a HTML or DHTML element is currently loading a page.

Before calling Panel:SetHTML or DHTML:OpenURL, the result seems to be false with the Awesomium web renderer and true for the Chromium web renderer. This difference can be used to determine the available HTML5 capabilities.
On Awesomium, the result remains true until the root document is loaded and when in-page content is loading (when adding pictures, frames, etc.). During this state, the HTML texture is not refreshed and the panel is not painted (it becomes invisible).

On Chromium, the value is only true when the root document is not ready. The rendering is not suspended when in-page elements are loading.

Returns

1 boolean
Whether or not the (D)HTML object is loading.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...