defer

slinky.web.html.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Ā DOMContentLoaded. This attribute must not be used if the src 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 async=false instead. Scripts with the defer attribute will execute in the order in which they appear in the document.

Attributes

Graph
Supertypes
trait Attr
class Object
trait Matchable
class Any
Self type
defer.type

Members list

Concise view

Type members

Classlikes

object tag extends TagElement

Attributes

Graph
Supertypes
class TagElement
class Object
trait Matchable
class Any
Self type
tag.type

Types

type attrType = _defer_attr.type

Inherited types

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

Attributes

Inherited from:
Attr

Value members

Concrete methods

def :=(v: Boolean): AttrPair[_defer_attr.type]
def :=(v: Option[Boolean]): OptionalAttrPair[_defer_attr.type]

Implicits

Implicits

implicit def boolToPairscriptApplied(attrObj: defer.type.this.type): AttrPair[tag.type]
implicit def boolToPairstarApplied(attrObj: defer.type.this.type): AttrPair[tag.type]