In my Angular 6 application, I noticed that Bootstrap is being loaded multiple times - once in the src/index.html file and then again in each component's .ts file.
<link href="assets/css/bootstrap/css/bootstrap.css">
styleUrls:[
**'../../../../assets/css/bootstrap/css/bootstrap.min.css',**
'../../../../assets/css/font-awesome/css/font-awesome.min.css']
With multiple components (header, footer, sidebar, body) on a single page, Bootstrap CSS is being loaded four times, potentially slowing down the page load.
Question: Does loading the same CSS file multiple times impact page load speed?
To optimize page loading, can I remove Bootstrap from individual components and import it just once in the main style.css using:
@import 'assets/css/bootstrap/css/bootstrap.min.css';
During development, even a small change triggers a long page reload time due to excessive Bootstrap loading. Seeking suggestions on how to proceed efficiently.