3

I am using angularjs with partials html as header. In the main html head,code is run;

<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">
<div ng-include src="'partials/header.html'"></div>

In the partial header.html, bootstrap.min.css is linked again.
<link rel="stylesheet" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">

The webpage runs normally. Will there be any side effect if bootstrap.min.css is linked twice?

1 Answer 1

4

If the two files are exactly same, Then it does not matter how many times they are included. If they are not the same, the classes form last added file will take precedence in case of conflict.

Sign up to request clarification or add additional context in comments.

1 Comment

Will it slow down page loading slightly?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.