defer

object defer extends Attr

This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firingĀ <code><a title="/en-US/docs/Web/Events/DOMContentLoaded" href="/en-US/docs/Web/Events/DOMContentLoaded">DOMContentLoaded</a></code>. This attribute must not be used if the <code>src</code> attribute is absent (i.e. for inline scripts), in this case it would have no effect. To achieve a similar effect for dynamically inserted scripts use <code>async=false</code> instead. Scripts with the <code>defer</code> attribute will execute in the order in which they appear in the document.

trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: Boolean): AttrPair[_defer_attr]
@inline
def :=(v: Option[Boolean]): OptionalAttrPair[_defer_attr]

Implicits

Implicits

@inline
implicit def boolToPairscriptApplied(attrObj: defer): AttrPair[tag]
@inline
implicit def boolToPairstarApplied(attrObj: defer): AttrPair[tag]