All Implemented Interfaces:
TagBase, BooleanAttribute, ScriptAttributable, Serializable, Cloneable

public class Defer extends AbstractAttribute implements BooleanAttribute, ScriptAttributable
<element defer> defer is a boolean attribute which can be used in Script tag to execute its src file only after the page has finished parsing.
Since:
2.1.9
See Also:
  • Constructor Details

    • Defer

      public Defer()
      sets the default value as defer. If value is not required then use new Defer(null).
      Since:
      2.1.9
    • Defer

      public Defer(String value)
  • Method Details

    • setValue

      public void setValue(String value)
    • setValue

      public void setValue(boolean updateClient, String value)
      sets the value for this attribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      2.1.15
    • getValue

      public String getValue()
    • init

      protected void init()
      invokes only once per object
      Since:
      2.1.9