Can this be delay loaded only when the metrics tab is selected?
there's an online custom build tool for echarts which lets you select just the chart type required, instead of loading support for every possible chart type
i.e this config produces a 366k echarts library (I'm not sure what options are being used for Lucee, I think only one type of chart is being used currently for Lucee)
I've added a fix for this issue. Lucee loads the 1.1mb of echarts when metrics are shown. So I've updated the corresponding jquery file to load the specific chart as per reporter's said.
Pull request: https://github.com/lucee/Lucee/pull/674
as it is no longer the echarts-all.js version, the file should be renamed echarts-custom.js
if you use this approach, you can just load it when required (i.e. if the metrics tab is clicked)
I've added the approach that was mentioned by Zac in the above comment. Now the echarts-all.js loaded at the time of only when we click the Metrics button.