# Glimmer-site-header.gjs:144 getBoundingClientRect error only when custom plugin enabled

**URL:** <https://meta.discourse.org/t/glimmer-site-header-gjs-144-getboundingclientrect-error-only-when-custom-plugin-enabled/390874>\
**Category:** Development\
**Created:** [December 10, 2025, 8:04am UTC](https://meta.discourse.org/t/glimmer-site-header-gjs-144-getboundingclientrect-error-only-when-custom-plugin-enabled/390874 "2025-12-10T08:04:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [December 10, 2025, 12:50pm UTC](https://meta.discourse.org/t/glimmer-site-header-gjs-144-getboundingclientrect-error-only-when-custom-plugin-enabled/390874/2 "2025-12-10T12:50:57Z")

</div>

I don’t know if this is your problem, but rather than connectors, you should now use `api.renderInOutlet`. I find that more intuitive and less fiddly.

> <https://github.com/literatecomputing/discourse-custom-components/blob/main/javascripts%2Fdiscourse%2Fapi-initializers%2Fcustom-components.gjs>

---

_[View the full topic](https://meta.discourse.org/t/glimmer-site-header-gjs-144-getboundingclientrect-error-only-when-custom-plugin-enabled/390874)._
