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 |
---|---|---|---|
id | false | javax.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. |
rendered | false | javax.el.ValueExpression
(must evaluate to java.lang.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. |
binding | false | javax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent )
|
The ValueExpression linking this component to a property in a backing bean.
|
library | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The "library name" part of the resource identifier. |
name | true | javax.el.ValueExpression
(must evaluate to java.lang.String )
| The "resource name" part of the resource identifier. |
group | false | javax.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. |
onbegin | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| JavaScript code to execute right before the script loading begins. |
onsuccess | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| JavaScript code to execute when the script loading is successfully completed. |
onerror | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| JavaScript code to execute when the script loading has failed. |
Output generated by Vdldoc View Declaration Language Documentation Generator.