Skip to content

Add customisation for improving performance culture #325

Open
@jochemvogel

Description

I recently thought about this and maybe others agree on this. Why not add customisation to the messages shown in the CLI and CI.

For example. I updated line 156 of create-report.js to:

if (typeof check.loadTime !== 'undefined') {
 rows.push(['Loading time', formatTime(check.loadTime), 'for ~1000 users per month'])
}

Can't find a way to modify the loading time. Currently it's set to Slow 3G (400kb/s & 2000ms latency). I would like to update it to the speed of our users.

This issue is not about solving this particular wish, it's about others as well. When possible to customise those messages, it will help to create awareness for the engineers.

image

Could elaborate on this and dive deeper into it, but I first want to see if people agree on this.

Possibly add it to the package.json. Just a rough draft:

"size-limit": [
  {  
     "path": "./clients/dashboard/build/static/js/vendorsMain.*.bundle.js",
     "customConfig": {
         "downloadSpeed": "1200 kb",
         "latency": "800 ms",
         "audienceMessage": "for ~600 users"
  }
],

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions