I am using a js file and it is available in cdn. I also have the same js file in my project as fallback.
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.3.1/js/swiper.min.js"></script>
<script src="js/3rdPartyLibraries/swiper.min.js"></script>
I have both these code in my html file under head. Can some one tell if js file will be downloaded twice or only once? Is it correct to have both links? Will it still avoid duplicacy based on name?
Issue on how to handle CDN failure on fallback is asked and explained elsewhere. With respect to the scenario explained in the question I was more concerned if it downloads the same library twice (which as per answer is yes) and the reason if yes?