alucor-it
alucor-it

Reputation: 133

Optimize Angular app - Delay in loading data

I have an Angular app and the dashboard page calls a number of APIs to fetch data from backend (almost 10 APIs on page load - OnInit). The data takes a few seconds to load. How can I optimize it? Does the below warning have anything to do with the delay in data loading?

Warning: xxx.component.scss exceeded maximum budget. Budget 2.00 kB was not met by 217 bytes with a total of 2.21 kB.

Warning: bundle initial exceeded maximum budget. Budget 500.00 kB was not met by 1.10 MB with a total of 1.58 MB.

Thank you

Upvotes: 1

Views: 575

Answers (1)

Aviv Ben Shahar
Aviv Ben Shahar

Reputation: 319

The warning that you have been seen does not relate to the API calls, but a definition on angular.json file.

As you might see here how to change that: Angular.io

Just increase the maximum bundle size of your angular app.

Upvotes: 2

Related Questions