You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replacing momentjs with datefs or another libraries
The title of the associated rule is measured in this ticket.
Associated rule link
The link to the existing rule measured referenced into the "rules specifications" repository BP40 Javascript
Language and platform
The language and platform of the associated rule.
It's supposed to be described in the rule itself.
Measure justification
With momentjs: (294,9kb)
carbon: 60
water: 34
energy: 69
performance: 86
carbon (kt co2): 307
water (hm3): 29,9
energy (gwh): 469
With datefns: (75,9kb)
carbon: 60
water: 34
energy: 69
performance: 84
carbon (kt co2): 307
water (hm3): 29,9
energy (gwh): 469
With luxon: (78,1kb)
carbon: 61
water: 34
energy: 69
performance: 85
carbon (kt co2): 306
water (hm3): 29,9
energy (gwh): 468
This rule has an environmental impact. When we load a heavier library, in this case momentjs, which is over 4 times heavier than datefns or luxon, this has an environmental impact. Users have to download more data. In our case, using a heavier library is not justified, as we're only looking to manipulate dates ...
Validation
We validate this rule 75%, but it would be relevant to carry out measurements with other tools.
The text was updated successfully, but these errors were encountered:
Replacing momentjs with datefs or another libraries
The title of the associated rule is measured in this ticket.
Associated rule link
The link to the existing rule measured referenced into the "rules specifications" repository
BP40 Javascript
Language and platform
The language and platform of the associated rule.
It's supposed to be described in the rule itself.
Measure justification
With momentjs: (294,9kb)
With datefns: (75,9kb)
With luxon: (78,1kb)
This rule has an environmental impact. When we load a heavier library, in this case momentjs, which is over 4 times heavier than datefns or luxon, this has an environmental impact. Users have to download more data. In our case, using a heavier library is not justified, as we're only looking to manipulate dates ...
Validation
We validate this rule 75%, but it would be relevant to carry out measurements with other tools.
The text was updated successfully, but these errors were encountered: