# Unnecessary code on the website?

**URL:** https://meta.discourse.org/t/unnecessary-code-on-the-website/75629
**Category:** Bug
**Created:** [December 7, 2017, 3:27pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629 "2017-12-07T15:27:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [December 7, 2017, 3:27pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/1 "2017-12-07T15:27:59Z")

</div>

I looked at the code for this and three other sites (as seen by the search robot) and found on page (./latest) weird code. What is it?

 ![Untitled-1](https://global.discourse-cdn.com/meta/original/3X/5/a/5a7e94a936ffab779b24bd872d780e7f327707cd.jpg)

in the template `views-site/list/list.erb` it is not. Templates clean. I didn’t look further.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [December 7, 2017, 3:39pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/2 "2017-12-07T15:39:15Z")

</div>

Does this exists here on meta as well?

if not then check the customize section of Your website and look if anything unnecessary is left over in your `</head>` & `after header` section.

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [December 7, 2017, 3:42pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/3 "2017-12-07T15:42:20Z")

</div>

This is a screenshot from this website: Discourse Meta (in the screenshot)  
I checked on three different websites, two independent scanners.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [December 7, 2017, 3:45pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/4 "2017-12-07T15:45:28Z")

</div>

Okay! thanks for pointing out!..

I never had really observed this but it does exists on my sandbox and production instances as well so maybe it is something left out. someone from dev team may fix it 😉

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 7, 2017, 11:31pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/5 "2017-12-07T23:31:22Z")

</div>

Great catch @Stranik!

Fixed per:

[https://github.com/discourse/discourse/commit/cff9b8846dec2d23b7290e479acc14db61b2c7ae](https://github.com/discourse/discourse/commit/cff9b8846dec2d23b7290e479acc14db61b2c7ae)

@eviltrout can you review, I think that was your intention there, to allow plugin to unconditionally replace the noscript header?

---

<div class="post-metadata">

### Author: ![Stranik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stranik/32/85638_2.png) [@Stranik](https://meta.discourse.org/u/Stranik)
#### Post date: [December 8, 2017, 12:02am UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/6 "2017-12-08T00:02:00Z")

</div>

Everything is corrected. Thank you! The question can be closed.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [December 8, 2017, 12:02am UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/7 "2017-12-08T00:02:17Z")

</div>



---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [December 8, 2017, 5:28pm UTC](https://meta.discourse.org/t/unnecessary-code-on-the-website/75629/8 "2017-12-08T17:28:02Z")

</div>

Yes - the patch is subtle here. The trick is not to return the result too and instead return `nil`? That makes sense.
