How to Use CDN link

How to Use CDN link
0

#1

Tell us what’s happening:
Hello all
How can I use the CDN link in my html file?
kind regards

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-product-landing-page


#2

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js">

If you’re using CodePen you can also go on the settings and insert the link in one of the two fields at the bottom for javascript, it is suggested that you also set Babel as preprocessor.


#3

thanks for reply
I use codepen also but I wanted to know cdn link’s use on github or any other environment.
I copied this <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> in my html file but it doesn’t work.


#4

Not sure why is not working.
Are you using any other CDN?


#5
<head>
	<title>Product Landing Page</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
	<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
	<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
	<script src="js/script.js" type="text/javascript"></script>
</head>