# Optimize discourse css via PageSpeed insights

**URL:** https://meta.discourse.org/t/optimize-discourse-css-via-pagespeed-insights/167554
**Category:** Feature
**Created:** [October 18, 2020, 10:45pm UTC](https://meta.discourse.org/t/optimize-discourse-css-via-pagespeed-insights/167554 "2020-10-18T22:45:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tirex](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tirex/32/183550_2.png) [@tirex](https://meta.discourse.org/u/tirex)
#### Post date: [October 18, 2020, 10:45pm UTC](https://meta.discourse.org/t/optimize-discourse-css-via-pagespeed-insights/167554/1 "2020-10-18T22:45:30Z")

</div>

Hi, after doing analysis on my forum with PageSpeed Insights, I see that discourse use ~55 kB of unused css.  
In my opinion this is a much, so you can use PurgeCSS to optimize discourse styles.

I think this is an important feature, that will improve website load time

---

<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: [October 19, 2020, 12:08am UTC](https://meta.discourse.org/t/optimize-discourse-css-via-pagespeed-insights/167554/2 "2020-10-19T00:08:09Z")

</div>

The report is not optimized for Discourse which is a long living single page app.

We can not remove all the CSS for the badges page, cause the badges pages will be unstyled. We do not have the architecture to ship the CSS for the badges page just when you visit it. We will consider long term changes here but there is no easy win.
