Unfortunately, the package size can't be reduced.
We recommend the following to improve the loading time:
- make sure the bundle is served compressed (in your screenshot, you can see that the gzipped size is 213 KB which is a size of one image)
- enable proper client-side caching (you can cache forever since the bundle name is always unique)
- serve the JavaScript from a CDN
These steps will reduce the loading time to 50-60ms during the initial load and to 0ms during subsequent loads.
If you only use DayPilot in a part of your application you may also consider using Angular lazy loading for the respective module. In that case, the library will only be loaded when needed:
https://angular.io/guide/lazy-loading-ngmodules