Skip to content

Commit 5b99dec

Browse files
authored
chore: speed up the benchmark page loading (#4235)
At least locally this makes a big difference for me <img width="952" height="309" alt="image" src="https://github.com/user-attachments/assets/022ae0f0-c486-4323-9686-d3fcc916cabf" /> Signed-off-by: Andrew Duffy <[email protected]>
1 parent b2c56b9 commit 5b99dec

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

benchmarks-website/chart-manager.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ export const chartManager = {
193193
radius: isMobile ? 0 : 3,
194194
},
195195
},
196-
animation: {
197-
duration: isMobile ? 0 : CONFIG.ANIMATION_DURATION,
198-
},
196+
animation: false,
199197
scales: {
200198
x: {
201199
title: {
@@ -500,7 +498,6 @@ export const chartManager = {
500498
}
501499

502500
// Update all options directly
503-
chart.options.animation.duration = 0;
504501
chart.options.aspectRatio = currentIsMobile ? 1.5 : 2;
505502
chart.options.pointStyle = currentIsMobile ? false : "crossRot";
506503
chart.options.elements.point.radius = currentIsMobile ? 0 : 3;
@@ -571,4 +568,4 @@ export const chartManager = {
571568
window.state.isResizing = false;
572569
});
573570
},
574-
};
571+
};

0 commit comments

Comments
 (0)