Hrr
August 18, 2018, 9:56am
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:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
1 Like
<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.
4 Likes
Hrr
August 18, 2018, 10:05am
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.
Not sure why is not working.
Are you using any other CDN?
Hrr
August 18, 2018, 10:16am
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>
1 Like
I have put it in the bottom of my body instead in the head works for me
3 Likes
Adding it to the bottom also works for me! Thanks for the tip.
1 Like
How I can take the test on GitHub? I’m beginner, so in details plz, and in plain English. or screenshots,
Thank in advance
PaoloDiBello:
how do you use it in Vs code when I’m using React app
1 Like
Include the link in the index.html file.