# Memory & Cpu Usage (Client)

**URL:** <https://forum.ghost.org/t/memory-cpu-usage-client/4739>\
**Category:** Developer help\
**Created:** [December 30, 2018, 2:46pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739 "2018-12-30T14:46:32Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kheo](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kheo](https://forum.ghost.org/u/Kheo)\
**Post date:** [December 30, 2018, 2:46pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/1 "2018-12-30T14:46:33Z")

</div>

Hello Everyone,

I’ve noticed that Ghost uses a lot of CPU on the client side, and I’m not too sure why. Here’s a screenshot of Ghost (Ghost-CLI version: 1.9.8, Ghost version: 2.9.1, and Casper theme Version 2.8.0) and the subsequent rendering on Safari:  
 ![26](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex015/uploads/ghost2/original/2X/1/109987aeb68f55720d50b0bf322e0d7b3a449a14.png)

What’s the best way to stop it from invalidating/repainting the page, almost every ms…?

I quickly checked other themes, and this seems to be also present.

thanks!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [January 2, 2019, 2:27pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/2 "2019-01-02T14:27:05Z")

</div>

@Kheo on which page are you seeing this? On your site’s front-end (what your visitors see) or in the admin panel?

---

<div class="post-metadata">

**Author:** ![Kheo](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kheo](https://forum.ghost.org/u/Kheo)\
**Post date:** [January 2, 2019, 2:37pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/3 "2019-01-02T14:37:21Z")

</div>

On the welcome page (site front end), but not on an article page. The problem is also present on [https://blog.ghost.org](https://blog.ghost.org) (80% of 1 out of 4 CPU, also much less than a vanilla Casper theme), so you should give it a try.

 ![04](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/8/8a19cc0c6f743cd4ee5e4e795346dc6bef22064a.png)

I think it’s prevalent on Safari, but couldn’t see the issue on other wb…

Speaking of which, I’d be interested to know how you guys create the categories on [https://blog.ghost.org](https://blog.ghost.org)? Would you have a link to share?

thanks!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [January 2, 2019, 3:02pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/4 "2019-01-02T15:02:03Z")

</div>

Interesting, this appears to be a bug in Safari itself. I can replicate with latest stable Safari but the issue isn’t reproducible when using Safari Technology Preview.

I don’t think there’s much we can do about it other than wait for the next Safari release but by all means open a PR on the [Casper repo](https://github.com/TryGhost/Casper) if you can track down what’s causing it :)

> [@Kheo](#):
>
> Speaking of which, I’d be interested to know how you guys create the categories on [https://blog.ghost.org](https://blog.ghost.org)?

The blog theme’s source is available here [https://github.com/TryGhost/Blog](https://github.com/TryGhost/Blog). It’s not packaged as a ready-to-use theme as it’s highly tailored to our blog content but you should be able to see how everything is done.

---

<div class="post-metadata">

**Author:** ![Kheo](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kheo](https://forum.ghost.org/u/Kheo)\
**Post date:** [January 2, 2019, 3:48pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/5 "2019-01-02T15:48:19Z")

</div>

> if you can track down what’s causing it

I wish I could but my knowledge of JS doesn’t go that far… i’ll give it a shot, just in case.

Thanks for the link!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kevin/32/32_2.png) [@Kevin](https://forum.ghost.org/u/Kevin)\
**Post date:** [January 2, 2019, 4:01pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/6 "2019-01-02T16:01:08Z")

</div>

I’m not sure it’s related to JS, the timeline is not showing any JS events which is what suggested to me that it’s a bug internal to Safari. Maybe something to do with a specific combination of CSS, or an event handler that has a bug which causes style invalidation.

---

<div class="post-metadata">

**Author:** ![Kheo](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@Kheo](https://forum.ghost.org/u/Kheo)\
**Post date:** [January 2, 2019, 4:13pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/7 "2019-01-02T16:13:21Z")

</div>

That’s how bad I am at JS… can’t even figure out when it’s not JS. 😢

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [January 16, 2019, 4:13pm UTC](https://forum.ghost.org/t/memory-cpu-usage-client/4739/8 "2019-01-16T16:13:32Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
