# .js를 사용자 페이지 끝에 추가하면 404 페이지가 깨집니다

**URL:** <https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777>\
**Category:** UX\
**Created:** [8월 22, 2020, 9:16오후 UTC](https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777 "2020-08-22T21:16:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![neounix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neounix/32/215617_2.png) [@neounix](https://meta.discourse.org/u/neounix)\
**Post date:** [8월 23, 2020, 1:33오후 UTC](https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777/5 "2020-08-23T13:33:58Z")

</div>

고수준에서 보면(Ember에 대해 전혀 알지 못하므로 일반적인 관점에서 말씀드리는 것입니다), 이런 일이 발생하는 이유는 Discourse가 `.js` 확장자를 가진 파일을 로드하려고 시도하기 때문이라고 생각합니다. 그 결과 콘솔에 JavaScript 404 오류가 발생하고, 이로 인해 Discourse Ember 404 페이지가 완전히 로드되지 못합니다(JS 실패).

따라서 일반적인 404 페이지는 로드되지만, JS 오류(404 JS 로딩 오류도 존재하기 때문)로 인해 원래의 깔끔한 방식으로 렌더링되지 않습니다.

 ![Screen Shot 2020-08-23 at 8.31.53 PM](https://global.discourse-cdn.com/meta/original/3X/a/f/af1fcb31057d78db70ff121020d9e5ee91e544f5.jpeg)

---

_[View the full topic](https://meta.discourse.org/t/404-page-breaks-when-js-is-added-to-the-end-of-a-user-page/161777)._
