Back
Question
why is my site slow? bundle size is small
this is the website https://bound2.app
it comes in with a decent score on pingdom. And the page size is just 1.1MB. But the "wait" phase is nearly 15 seconds.
And I can't work out why. Perhaps an old version of webpack / node config problem?
This is a link to my github => https://github.com/crowdform/bound2web
The project is really simple, so webpack / server.js files are possibly the ones. I'm using old webpack.
Massive thanks.
it comes in with a decent score on pingdom. And the page size is just 1.1MB. But the "wait" phase is nearly 15 seconds.
And I can't work out why. Perhaps an old version of webpack / node config problem?
This is a link to my github => https://github.com/crowdform/bound2web
The project is really simple, so webpack / server.js files are possibly the ones. I'm using old webpack.
Massive thanks.
👋 Join WIP to participate
I am no expert but maybe it has to do with all those images. For me, the "wait" phase was 7 seconds and it was due to those images if I read correctly from the graph below.
Interesting thanks. IDK though. The total page size (with all images) is just 1.1mb. Which isn't much.
I don't know much either, but that shouldn't take 7 secs to load
Try blinkloader.com to find issues. Here's a direct link blinkloader.com/test/?q=null&…
Solve those issues & check again. Also the Github link is not working maybe bcz Github is down right now or your link must be pointing wrongly. I dont think its an image issue though.
Also, put those 2 script tags in
body
rather thanhead
even though you've putasync
ordefer
, its usually a good practice to place it inbody
. Also you've put your head tag wrong. It wraps on body so that might be the issue as well 😂Some more tips - developers.google.com/speed/p…
It seems like you are serving a couple dozen images from Amazon S3.
While S3 is great for hosting assets, it seems rather slow for serving assets. I think one of the reasons the images load so slowly is because S3 uses HTTP 1.1 which, unlike HTTP 2, doesn't support serving multiple requests in parallel. This means the browser can't start loading all images at once, but has to wait for image 1 to be finished, before it can download image 2, etc, etc.
Full disclosure: I'm not 100% sure that's the correct technical explanation, but based on my limited knowledge on the topic that's my best guess.
Okay, so what is the solution? Add a CDN like Amazon CloudFront to the mix. CDNs are optimized for serving assets like these. You will still host the images on S3, but let Amazon CloudFront take care of serving them to the browser.