This will give bonus points with among others the Google PageSpeed tool, on the contrary to placing the script at
bottom of body, or using defer="true"
or even async="true"
.
Info | Value |
---|---|
Component Type | org.omnifaces.component.script.DeferredScript |
Handler Class | None |
Renderer Type | None |
Description | None |
Name | Required | Type | Description |
---|---|---|---|
binding | false | jakarta.el.ValueExpression
(must evaluate to jakarta.faces.component.UIComponent )
|
The ValueExpression linking this component to a property in a backing bean.
|
group | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| The group name on which the deferred script resources should be combined by CombinedResourceHandler. All deferred scripts resources having the same combined group name will be combined into a single deferred script in the place where the first member of the group occurs in the component tree. |
id | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| The component identifier for this component. This value must be unique within the closest parent component that is a naming container. |
library | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| The "library name" part of the resource identifier. |
name | true | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| The "resource name" part of the resource identifier. |
onbegin | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| JavaScript code to execute right before the script loading begins. |
onerror | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| JavaScript code to execute when the script loading has failed. |
onsuccess | false | jakarta.el.ValueExpression
(must evaluate to java.lang.String )
| JavaScript code to execute when the script loading is successfully completed. |
rendered | false | jakarta.el.ValueExpression
(must evaluate to boolean )
| Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true. |
Output generated by Vdldoc View Declaration Language Documentation Generator.