defer method

Script defer(
  1. bool boolean
)

This 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. Read more...

Implementation

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