async

object async extends Attr

A boolean attribute indicating that the browser should, if possible, execute the script asynchronously. This attribute must not be used if the <code>src</code> attribute is absent (i.e. for inline scripts). If it is included in this case it will have no effect. <br> <br> Dynamically inserted scripts execute asynchronously by default, so to turn on synchronous execution (i.e. scripts execute in the order they were loaded) set async=false See <a href="#Browser_compatibility">Browser compatibility</a> for notes on browser support. See also <a href="/en-US/docs/Games/Techniques/Async_scripts">Async scripts for asm.js</a>.

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[_async_attr]
@inline
def :=(v: Option[Boolean]): OptionalAttrPair[_async_attr]

Implicits

Implicits

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