PerformanceStandards

io.github.frikit.twirlspec.quality.PerformanceStandards
object PerformanceStandards extends RuleSet

Markup that makes a page slower or shakier than it needs to be.

Everything here is a warning. None of it is wrong, and a template can have a good reason for any of it; they are worth seeing rather than worth failing.

Attributes

Source
PerformanceStandards.scala
Graph
Supertypes
trait RuleSet
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def scriptsAreDeferredExcept(selectors: String*): Rule

scripts-are-deferred, leaving alone the head scripts these CSS selectors match: ones a platform puts in the head on purpose and a service cannot move, such as a consent script that has to run before any other. With no selectors it is the rule all carries.

scripts-are-deferred, leaving alone the head scripts these CSS selectors match: ones a platform puts in the head on purpose and a service cannot move, such as a consent script that has to run before any other. With no selectors it is the rule all carries.

Attributes

Source
PerformanceStandards.scala

Inherited methods

def allExcept(ids: String*): Seq[Rule]

Every rule but the ones with these ids, each of which must be in the set.

Every rule but the ones with these ids, each of which must be in the set.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala
def expectation(rules: Seq[Rule] = ...): Expectation

This set, or any subset of it, as one expectation.

This set, or any subset of it, as one expectation.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala
def only(ids: String*): Seq[Rule]

Only the rules with these ids, each of which must be in the set.

Only the rules with these ids, each of which must be in the set.

Attributes

Inherited from:
RuleSet
Source
RuleSet.scala

Concrete fields

lazy val all: Seq[Rule]

Every rule in this set, at its natural severity.

Every rule in this set, at its natural severity.

Attributes

Source
PerformanceStandards.scala