Images in buckets (spaces) taking too long to load

Posted July 27, 2018 2.1k views
Ubuntu 16.04Block Storage

On one page i’m getting about 8 images using the bucket (Spaces) and it takes about a minute to load (actual time). Without the images it’s much faster.

I’m using laravel’s Storage library to get the images.

$url = Storage::disk('do_spaces')->url($path);

<img src=" {{ $url }}" />

Can anyone point out why it’s taking so long for the images to load?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello friend!

That’s definitely not ideal. I think in this case it might be a good idea to open a ticket and give the direct URL to a few of these images that are taking so long to load, so that we can test from our side. I’m assuming that these images are reasonably compressed and not just so large that it makes sense for them to load slowly.

Kind Regards,