(label, actual, budget, comparator = (a, b) => a <= b)
| 547 | } |
| 548 | |
| 549 | function budgetStatus(label, actual, budget, comparator = (a, b) => a <= b) { |
| 550 | const ok = comparator(actual, budget) |
| 551 | return { |
| 552 | label, |
| 553 | actual, |
| 554 | budget, |
| 555 | ok |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | function findDeferredNormalFlowChunks(scripts) { |
| 560 | return scripts.filter((script) => |