# Site not loading and breaking after doing upgrade from admin UI due to theme errors

**URL:** <https://meta.discourse.org/t/site-not-loading-and-breaking-after-doing-upgrade-from-admin-ui-due-to-theme-errors/230674>\
**Category:** Support\
**Created:** [June 21, 2022, 8:44pm UTC](https://meta.discourse.org/t/site-not-loading-and-breaking-after-doing-upgrade-from-admin-ui-due-to-theme-errors/230674 "2022-06-21T20:44:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [June 21, 2022, 9:05pm UTC](https://meta.discourse.org/t/site-not-loading-and-breaking-after-doing-upgrade-from-admin-ui-due-to-theme-errors/230674/2 "2022-06-21T21:05:05Z")

</div>

Your theme is throwing errors. You can use [safe mode](https://meta.discourse.org/t/53504?silent=true) to bypass the theme and fix them.

You have this added in the `<head>` field in your main theme or one of its components.

```plaintext
<script src="https://howtodiscuss.com/uploads/default/original/2X/6/6bc74544c62dcf344715cbc6f2bc10c734af4814.js"></script>

```

find that and add `defer` to it like so

```plaintext
<script defer src="https://howtodiscuss.com/uploads/default/original/2X/6/6bc74544c62dcf344715cbc6f2bc10c734af4814.js"></script>

```

---

_[View the full topic](https://meta.discourse.org/t/site-not-loading-and-breaking-after-doing-upgrade-from-admin-ui-due-to-theme-errors/230674)._
