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
ChartWidget.preload() (@tradecanvas/chart): loads now the code of the dialogs and panels that otherwise load the first time they open, for a page that opens one from code as it starts.
chart.whenIndicatorsReady() and Chart.preloadIndicators(ids?) (@tradecanvas/chart): resolve at once in 3.x, where a chart has every built-in indicator's code. From 4.0 a chart will load each built-in's code the first time one is added: awaiting whenIndicatorsReady() before reading values keeps the read right. In @tradecanvas/core, for an engine of your own: registerBuiltInIndicatorsOnDemand, preloadBuiltInIndicators and IndicatorEngine.whenPluginsLoaded().
Changed
@tradecanvas/core a file per module (@tradecanvas/core): published as its modules, so that a bundler leaves out more of what a page never uses; served without one, a page asks for each file.
A lighter first load (@tradecanvas/chart): the widget's stylesheet comes written short, and the dock's alerts, objects, symbol info, tape and depth ladder, the order ticket and the account panel load their code the first time they open, as the larger dialogs do, or once the page is idle. new ChartWidget() brings in 458 kB gzipped where it was 504.