# Advice for speeding up site

**URL:** <https://forum.getkirby.com/t/advice-for-speeding-up-site/11247>\
**Category:** Questions\
**Tags:** v2\
**Created:** [September 17, 2018, 9:41pm UTC](https://forum.getkirby.com/t/advice-for-speeding-up-site/11247 "2018-09-17T21:41:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brighurst](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/brighurst/32/9714_2.png) [@Brighurst](https://forum.getkirby.com/u/Brighurst)\
**Post date:** [September 17, 2018, 9:41pm UTC](https://forum.getkirby.com/t/advice-for-speeding-up-site/11247/1 "2018-09-17T21:41:24Z")

</div>

Working on this website right now ([here’s a draft](http://kevincadena.com/cup/))  
Right now the website is loading really slowly on the web, same with all the assets. I’ve kept them under 1mb but it seems like I’ll have to compress them more, would that solve the full issue?

The set up is everything is under the “home” page, and each page you link to is a child of that home page, and the links in each subpage are children of that subpage.

I’m also using the following plugins:  
SCSS Kirby  
Embed  
SimpleMDE

Finally, I keep getting toString() errors on all of the pages except the bottom right one so click that one to view the slow loading problem.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [September 17, 2018, 10:08pm UTC](https://forum.getkirby.com/t/advice-for-speeding-up-site/11247/2 "2018-09-17T22:08:03Z")

</div>

There are a number of things to do to speed up a website, but the biggest wins are as follows:

1. Optimise your images further
2. Properly configure .htaccess to serve things over gzip and properly setup browser caching
3. consolidate your css and javascript into single files and minify. If you can, defer the loading of javascript.

Assuming your on a Mac, theres a couple of guides on my blog for this… [Using Kirby to optimise CSS & Javascript](https://hashandsalt.com/blog/use-kirby-to-optimise-css-and-javascript) and [Using the CLI to optimise images](https://hashandsalt.com/blog/using-the-cli-to-optimise-images). You can get a detailed report on the things to fix on your site with [Sitespeed.io](http://Sitespeed.io) … [theres a guide for that too](https://hashandsalt.com/blog/audit-your-sites-performance)!

tl;dr - Use [imgoptim](https://imageoptim.com/mac) and [imgalpha](https://pngmini.com) on your images, borrow the relevant cache and Gzip .htaccess rules from the [HTML5 boiler plate](https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess?ts=2). Run your css through [CssNano CLi](https://cssnano.co), run your javascript through [uglify](https://www.npmjs.com/package/uglify-js)

Theres a [cli tool for imageoptim](https://github.com/JamieMason/ImageOptim-CLI) that you run recursively through a Kirby site.

Your image dimensions are also quite large, scale them down to something closer to the size you are using them on the page before optimising them. Looks like many of them are actually 3 times bigger then your using them at.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [September 18, 2018, 7:21am UTC](https://forum.getkirby.com/t/advice-for-speeding-up-site/11247/3 "2018-09-18T07:21:20Z")

</div>

Links:

> [@Advice for shaving seconds off of page loads?](https://forum.getkirby.com/t/advice-for-shaving-seconds-off-of-page-loads/5901/4):
>
> like others said you need to dig deeper. to help you right now you could share the link so we can tear the site apart (performance analysis wise). wink

> **[The Low Hanging Fruit of Web Performance - The Media Temple Blog](https://origin-blog.mediatemple.net/web-development-tech/low-hanging-fruit-web-performance/)**
>
> You don't have to be an expert to care about web performance nor be an expert to start making changes to your websites to make them faster.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:26pm UTC](https://forum.getkirby.com/t/advice-for-speeding-up-site/11247/4 "2025-02-06T17:26:08Z")

</div>


