Reducing size of main-client.js #242

Closed
opened 2025-08-09 17:15:32 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @NeilIrvingMacc on 1/5/2018

I am close to doing a UAT deployment of a small Angular4 website (approx. 15 components) to a test server, when I do a publish I see the file sizes in the screenshot below. This files are smaller than for development and smaller than Angular2 bundles and I have not configured netcore compression yet.

I cannot understand why main-client.js is almost 1MB though and how can I reduce it? My Components do no more than 1-2 http calls, display lists and / or allow form input. Its a very simple site.

If I look at main-client.js in VS2017 I notice it duplicates a lot of @License info if that's any clue?

Am I also right in thinking all the Bootstrap, JQuery and Angular stuff ends up in the Vendor file instead?

Thanks

Neil

deployed

*Originally created by @NeilIrvingMacc on 1/5/2018* I am close to doing a UAT deployment of a small Angular4 website (approx. 15 components) to a test server, when I do a publish I see the file sizes in the screenshot below. This files are smaller than for development and smaller than Angular2 bundles and I have not configured netcore compression yet. I cannot understand why main-client.js is almost 1MB though and how can I reduce it? My Components do no more than 1-2 http calls, display lists and / or allow form input. Its a very simple site. If I look at main-client.js in VS2017 I notice it duplicates a lot of @License info if that's any clue? Am I also right in thinking all the Bootstrap, JQuery and Angular stuff ends up in the Vendor file instead? Thanks Neil ![deployed](https://user-images.githubusercontent.com/20598580/34625199-b68116e0-f24f-11e7-9f52-2061fe741338.jpg)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#242
No description provided.