Is it recommended to use link href="#" or script src="#" with external addresses?

1

I wonder if there is any right (or more efficient) way to use existing .css or .js files. If it is advisable to request external addresses or ideally to use within my application.

Example: Using bootstrap, it is better to download and put in my application (Content folder)

<link href="~/Content/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<link href="~/Content/site.css" rel="stylesheet">
<script src="~/Scripts/bootstrap.min.js"></script>
<script src="~/Scripts/jquery.min.js"></script>
<link rel="stylesheet" href="~/Content/css1/font-awesome.min.css">

Or is it better to use an external address?

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.6.0/Chart.min.js"type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
    
asked by anonymous 12.06.2018 / 14:02

0 answers