'Loading main.js is very slow

I am working on a project where the users of the project are facing issue with the initial project loading. The project's front end is built on Angular-typescript. The main.js(>15mb) file is taking 15-17 seconds specifically for the Windows users whereas with mac, it's taking 5 seconds to load the main file. I am fairly new to the front end and not sure how to approach this performance issue. I have run lighthouse audit and performance comes down to 30% only. lighthouse audit



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source