elementTiming method

Img elementTiming(
  1. String marker, {
  2. bool? removeIf,
})

Marks the image for observation by the PerformanceElementTiming API. Read more...

Implementation

Img elementTiming(String marker, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('elementtiming', marker);
    node.attrs!.add(attr);
  }
  return this;
}