# Dumb question, how to get CDN link to work for tests without Codepen

**URL:** <https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216>\
**Category:** General\
**Created:** [November 29, 2019, 2:44am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216 "2019-11-29T02:44:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mengler](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mengler](https://forum.freecodecamp.org/u/mengler)\
**Post date:** [November 29, 2019, 2:44am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/1 "2019-11-29T02:44:51Z")

</div>

Hi all, trying to use a text editor instead of Codepen for one of my projects. I put the script in my head tag in my html doc but I’m not seeing it display on my page, but the rest of my html does. Any ideas?

---

<div class="post-metadata">

**Author:** ![senor.Bacon](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@senor.Bacon](https://forum.freecodecamp.org/u/senor.Bacon)\
**Post date:** [November 29, 2019, 3:06am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/2 "2019-11-29T03:06:21Z")

</div>

I don’t know how to solve your problem.

---

<div class="post-metadata">

**Author:** ![sgedye](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sgedye/32/127981_2.png) [@sgedye](https://forum.freecodecamp.org/u/sgedye)\
**Post date:** [November 29, 2019, 4:03am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/3 "2019-11-29T04:03:07Z")

</div>

Which project? What is the CDN link that you’re trying to include? Can you post the code?

---

<div class="post-metadata">

**Author:** ![dalevross](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dalevross/32/127221_2.png) [@dalevross](https://forum.freecodecamp.org/u/dalevross)\
**Post date:** [November 29, 2019, 4:11am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/4 "2019-11-29T04:11:52Z")

</div>

Not a dumb question. I placed mine as a script tag after all the html elements in the body. I think when it tries to append the div to the body, it hasn’t yet loaded so the script fails.

 ![image](https://global.discourse-cdn.com/freecodecamp/original/3X/9/d/9da142b8f89d09bf363a7c6ec455f19a5496fd72.png)

---

<div class="post-metadata">

**Author:** ![mengler](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mengler](https://forum.freecodecamp.org/u/mengler)\
**Post date:** [November 29, 2019, 5:41am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/5 "2019-11-29T05:41:22Z")

</div>

Product Landing Page, here’s where I’ve tried plugging the script in:

```auto
<html>
<head>
  <meta charset="UTF-8">
  <title>Product Landing Page</title>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  <link rel="stylesheet" type="text/css" href="productlandingpage.css">
</head>

<body>

```

---

<div class="post-metadata">

**Author:** ![sgedye](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sgedye/32/127981_2.png) [@sgedye](https://forum.freecodecamp.org/u/sgedye)\
**Post date:** [November 29, 2019, 5:55am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/6 "2019-11-29T05:55:34Z")

</div>

I think you may need to also include jQuery (above that line). It’s hard to know what’s happening without seeing the console. Also, I think it is better to include your scripts at the bottom - I usually put it just above the closing tag - that way the page (html) get displayed faster.

```auto
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

```

---

<div class="post-metadata">

**Author:** ![mengler](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mengler](https://forum.freecodecamp.org/u/mengler)\
**Post date:** [November 29, 2019, 6:17am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/7 "2019-11-29T06:17:02Z")

</div>

That worked, added if after the closing html tag. Thanks a bunch.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 11:31am UTC](https://forum.freecodecamp.org/t/dumb-question-how-to-get-cdn-link-to-work-for-tests-without-codepen/329216/8 "2021-01-16T11:31:40Z")

</div>

Closed on January 16, 2021, 11:31am UTC


