# Website takes 15 seconds to load

**URL:** <https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916>\
**Category:** Questions\
**Tags:** v2\
**Created:** [March 7, 2022, 9:41am UTC](https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916 "2022-03-07T09:41:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lucas/32/4410_2.png) [@lucas](https://forum.getkirby.com/u/lucas)\
**Post date:** [March 7, 2022, 9:41am UTC](https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916/1 "2022-03-07T09:41:16Z")

</div>

I made a [portfolio website](https://heinoverbeek.nl) for an artist friend. But the homepage takes ages to load. When it does load after about 15 seconds, everything is fine. I tried switching PHP versions on the host, but nothing works.

Is there a fix?

---

<div class="post-metadata">

**Author:** ![ahmetbora](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/ahmetbora/32/11671_2.png) [@ahmetbora](https://forum.getkirby.com/u/ahmetbora)\
**Post date:** [March 7, 2022, 10:06am UTC](https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916/2 "2022-03-07T10:06:24Z")

</div>

It’s loading less than 1 second now.

Regarding the slowing on the first launch;  
If your images are too large, it may be because the cropping process takes a long time.

---

<div class="post-metadata">

**Author:** ![bnomei](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/bnomei/32/775_2.png) [@bnomei](https://forum.getkirby.com/u/bnomei)\
**Post date:** [March 7, 2022, 10:46am UTC](https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916/3 "2022-03-07T10:46:33Z")

</div>

i would suspect generation of thumbs to be the issue for a longer loading time. there are ways to pre-generate these a) when uploading an image in the panel or b) a panel button or c) using a cron job.

further reading…

> [@Generate thumbnails before they are requested](https://forum.getkirby.com/t/generate-thumbnails-before-they-are-requested/17611):
>
> Is there is a way to generate thumbnails throughout the site without requesting them from the front end? I have a site with a lot of images using srcset, so visiting the front end page only generates the thumbnails for that breakpoint. If someone visits the site for a breakpoint that has not been generated, it’s going to be very slow. I know I could use a hook to generate thumbnails when the image is uploaded to the panel, but I’m looking for a way to do it now that everything is already there…

---

<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:** [March 7, 2022, 8:16pm UTC](https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916/4 "2022-03-07T20:16:48Z")

</div>

Looks like this is in the wrong category, as you are on Kirby 2, not Kirby 3. Doesn’t help if we provide Kirby 3 solutions.

There used to be a plugin for Kirby 2 that allowed you to pre-generate thumbs from the panel as well.

> **[GitHub - fabianmichael/kirby-imagekit: Asynchronous thumbnail creation and...](https://github.com/fabianmichael/kirby-imagekit)**
>
> Asynchronous thumbnail creation and optimization for Kirby 2 - GitHub - fabianmichael/kirby-imagekit: Asynchronous thumbnail creation and optimization for Kirby 2

---

<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:22pm UTC](https://forum.getkirby.com/t/website-takes-15-seconds-to-load/24916/5 "2025-02-06T17:22:55Z")

</div>


