async method

Script async(
  1. bool boolean
)

If the async attribute is present, then the classic script will be fetched in parallel to parsing and evaluated as soon as it is available. Read more...

Implementation

Script async(bool boolean) {
  if (boolean && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('async', '');
    node.attrs!.add(attr);
  }
  return this;
}