# Serving static files taking up to 30s

**URL:** <https://answers.netlify.com/t/serving-static-files-taking-up-to-30s/9049>\
**Category:** Support\
**Tags:** performance, hugo, netlify-cdn-adn\
**Created:** [February 16, 2020, 1:37pm UTC](https://answers.netlify.com/t/serving-static-files-taking-up-to-30s/9049 "2020-02-16T13:37:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanalonso](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@juanalonso](https://answers.netlify.com/u/juanalonso)\
**Post date:** [February 16, 2020, 1:37pm UTC](https://answers.netlify.com/t/serving-static-files-taking-up-to-30s/9049/1 "2020-02-16T13:37:03Z")

</div>

Hi, I’ve just migrated juanalonso.blog from Firebase to Netlify to use NetlifyCMS with my Hugo website, but a day after setting things up, I keep getting very slow download times from Netlify’s servers. Example requests:

[http://juanalonso.blog/](http://juanalonso.blog/)  
x-nf-request-id: b3242fa0-0d47-4ef5-a7ec-54a738b9f903-2536217  
Serve time (according to Chrome’s Network tab): 17s

"[https://juanalonso.blog/img/2019/2019-04-packed.jpg](https://juanalonso.blog/img/2019/2019-04-packed.jpg)  
x-nf-request-id: b3242fa0-0d47-4ef5-a7ec-54a738b9f903-2543812  
Serve time: 9.9s

I’ve checked Netlify’s docs but I’m not sure what am I doing wrong. Could you please help me understand why the download times are so slow? I’m pretty sure I’ve misconfigured something.

 ![Screen Shot 2020-02-16 at 14.38.39](https://global.discourse-cdn.com/netlify/original/2X/7/760eebd643675cec2777bde97433345be722c76e.png)

Thanks

---

<div class="post-metadata">

**Author:** ![noelforte](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/noelforte/32/7568_2.png) [@noelforte](https://answers.netlify.com/u/noelforte)\
**Post date:** [February 16, 2020, 7:47pm UTC](https://answers.netlify.com/t/serving-static-files-taking-up-to-30s/9049/2 "2020-02-16T19:47:10Z")

</div>

One thing I’d consider doing right up front is dropping the size of your network requests. As an example, the first image on your blog is at a resolution of 2976x2717 but being served at 235x215 (7.9% of the original file).

![Screen Shot 2020-02-16 at 2.27.25 PM](https://global.discourse-cdn.com/netlify/original/2X/4/4755b1295e187d13b0af1d9287419e8eac0fdfc8.png)

Most of the other images on your homepage also are very near or over 1MB which is significant considering the size they’re being displayed at. Once the page has loaded, I’m actually seeing a load time of about 1s on subsequent loads due to your resources now being cached. Disabling the cache though kicks the page load time back to 9s or more and this is browsing with a pretty snappy connection to the internet.

Something else I noticed was the deferment of `menu.js` due to the size of the resources that come before it (see screenshot below). It is best practice to place scripts at the bottom of the page so they don’t block the page from rendering, but because 7.2MB of resources need to download in parallel before main.js can be loaded in this case your script is being deferred from loading due to large network requests.

 ![Screen Shot 2020-02-16 at 2.38.19 PM](https://global.discourse-cdn.com/netlify/original/2X/e/e2164d20b086e2c22644a318ff1e51f8a14ee023.png)

Netlify can run some post-processing for you at the conclusion of your build (see: [Post processing | Netlify Docs](https://docs.netlify.com/site-deploys/post-processing/)) as well as transform large images for you via their large file service (see: [Transform images | Netlify Docs](https://docs.netlify.com/large-media/transform-images/#request-transformations)) but ultimately you’ll want to size down images yourself to improve load times.

---

<div class="post-metadata">

**Author:** ![juanalonso](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@juanalonso](https://answers.netlify.com/u/juanalonso)\
**Post date:** [February 17, 2020, 7:56pm UTC](https://answers.netlify.com/t/serving-static-files-taking-up-to-30s/9049/3 "2020-02-17T19:56:46Z")

</div>

Thanks a lot Noel, compressing the images fixed the issue. 🙂

---

<div class="post-metadata">

**Author:** ![noelforte](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/noelforte/32/7568_2.png) [@noelforte](https://answers.netlify.com/u/noelforte)\
**Post date:** [February 18, 2020, 1:15am UTC](https://answers.netlify.com/t/serving-static-files-taking-up-to-30s/9049/4 "2020-02-18T01:15:12Z")

</div>

Glad it worked! Happy to help.
